Permalink
Browse files

formatting fix

  • Loading branch information...
1 parent 188998e commit 4343d545e9b9d741b43f2ecafddef49187498606 @dryes-old dryes-old committed May 4, 2012
Showing with 17 additions and 17 deletions.
  1. +17 −17 resce.py
View
@@ -148,23 +148,23 @@ def rarsexist(rar, srr, rarlist, srrlist, args):
if sorted(srrlist)[0] == sorted(rarlist)[0] and args['force'] == False:
return True
- for f in set(srrlist[2] + rarlist):
- if os.path.isfile(f):
- if re.search(r'\.((part0?0?1\.)?rar|001)$', f, re.IGNORECASE) is not None:
- unrar = UnRAR(filename=f, binary=args['unrar_bin'])
- if unrar.unrar() == False:
- return False
-
- for f in set(srrlist[2] + rarlist):
- if os.path.isfile(f):
- try:
- os.unlink(os.path.join(os.getcwd(), f))
- except:
- if len(str(sys.exc_info()[1])) > 0:
- print(sys.exc_info()[1])
- return False
-
- return None
+ for f in set(srrlist[2] + rarlist):
+ if os.path.isfile(f):
+ if re.search(r'\.((part0?0?1\.)?rar|001)$', f, re.IGNORECASE) is not None:
+ unrar = UnRAR(filename=f, binary=args['unrar_bin'])
+ if unrar.unrar() == False:
+ return False
+
+ for f in set(srrlist[2] + rarlist):
+ if os.path.isfile(f):
+ try:
+ os.unlink(os.path.join(os.getcwd(), f))
+ except:
+ if len(str(sys.exc_info()[1])) > 0:
+ print(sys.exc_info()[1])
+ return False
+
+ return None
def inputexist(srrlist):
nf = 0

0 comments on commit 4343d54

Please sign in to comment.