@@ -292,7 +292,8 @@ def _parse_mount_table(exit_code, output):
292
292
pattern = re .compile (r'.*? on (/.*?) (?:type |\()([^\s,]+)(?:, |\)| )' )
293
293
294
294
# (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 ()),
296
297
key = lambda x : len (x [0 ]), reverse = True )
297
298
cifs_paths = [path for path , fstype in mount_info
298
299
if fstype .lower () == 'cifs' ]
@@ -777,8 +778,8 @@ def emptydirs(path, noexist_ok=False):
777
778
elcont = os .listdir (path )
778
779
if ex .errno == errno .ENOTEMPTY and not elcont :
779
780
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.' ,
782
783
path )
783
784
elif ex .errno == errno .ENOTEMPTY and elcont :
784
785
fmlogger .debug ('Folder %s contents (%d items).' , path , len (elcont ))
0 commit comments