@@ -556,7 +556,9 @@ def getSourceDestListOptDict(parser, wildcards=True):
556556# Several functions shared by rootcp, rootmv and rootrm
557557
558558TARGET_ERROR = "target '{0}' is not a directory"
559- OMITTING_ERROR = "{0} '{1}' will be copied but not its subdirectories (if any). Use the -r option if you need a recursive copy."
559+ OMITTING_ERROR = (
560+ "{0} '{1}' will be copied but not its subdirectories (if any). Use the -r option if you need a recursive copy."
561+ )
560562OVERWRITE_ERROR = "cannot overwrite non-directory '{0}' with directory '{1}'"
561563
562564
@@ -1062,7 +1064,7 @@ def rootMv(sourceList, destFileName, destPathSplit, compress=None, interactive=F
10621064# ROOTPRINT
10631065
10641066
1065- def _keyListExtended (rootFile , pathSplitList , recursive = False ):
1067+ def _keyListExtended (rootFile , pathSplitList , recursive = False ):
10661068 prefixList = []
10671069 keyList , dirList = keyClassSplitter (rootFile , pathSplitList )
10681070 for pathSplit in dirList :
@@ -1072,11 +1074,15 @@ def _keyListExtended(rootFile, pathSplitList, recursive = False):
10721074 prefixList = ["" for key in keyList ]
10731075 if recursive :
10741076 for subdir in subList :
1075- subkeyList , subprefixList = _keyListExtended (ROOT .gDirectory .Get (subdir .GetName ()), pathSplitList , recursive )
1077+ subkeyList , subprefixList = _keyListExtended (
1078+ ROOT .gDirectory .Get (subdir .GetName ()), pathSplitList , recursive
1079+ )
10761080 keyList .extend (subkeyList )
10771081 prefixList .extend ([subdir .GetName () + "_" + prefix for prefix in subprefixList ])
10781082 if recursive :
1079- keyList , prefixList = (list (t ) for t in zip (* sorted (zip (keyList , prefixList ), key = lambda x : x [0 ].GetName ().lower ())))
1083+ keyList , prefixList = (
1084+ list (t ) for t in zip (* sorted (zip (keyList , prefixList ), key = lambda x : x [0 ].GetName ().lower ()))
1085+ )
10801086 else :
10811087 keyListSort (keyList )
10821088 return keyList , prefixList
0 commit comments