@@ -292,7 +292,8 @@ def _parse_mount_table(exit_code, output):
292292 pattern = re .compile (r'.*? on (/.*?) (?:type |\()([^\s,]+)(?:, |\)| )' )
293293
294294 # (path, fstype) tuples, sorted by path length (longest first)
295- mount_info = sorted ((pattern .match (l ).groups () for l in output .splitlines ()),
295+ mount_info = sorted ((pattern .match (l ).groups ()
296+ for l in output .splitlines ()),
296297 key = lambda x : len (x [0 ]), reverse = True )
297298 cifs_paths = [path for path , fstype in mount_info
298299 if fstype .lower () == 'cifs' ]
@@ -777,8 +778,8 @@ def emptydirs(path, noexist_ok=False):
777778 elcont = os .listdir (path )
778779 if ex .errno == errno .ENOTEMPTY and not elcont :
779780 fmlogger .warning (
780- 'An exception was raised trying to remove old %s, but the path '
781- 'seems empty. Is it an NFS mount?. Passing the exception.' ,
781+ 'An exception was raised trying to remove old %s, but the path'
782+ ' seems empty. Is it an NFS mount?. Passing the exception.' ,
782783 path )
783784 elif ex .errno == errno .ENOTEMPTY and elcont :
784785 fmlogger .debug ('Folder %s contents (%d items).' , path , len (elcont ))
0 commit comments