diff options
Diffstat (limited to 'test/Mkdir.py')
-rw-r--r-- | test/Mkdir.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/Mkdir.py b/test/Mkdir.py index 094e6ed..dbeecb7 100644 --- a/test/Mkdir.py +++ b/test/Mkdir.py @@ -129,9 +129,7 @@ def catdir(env, source, target): outfp = open(target, "wb") for src in source: s = str(src) - l = os.listdir(s) - l.sort() - for f in l: + for f in sorted(os.listdir(s)): f = os.path.join(s, f) if os.path.isfile(f): outfp.write(open(f, "rb").read()) |