Merge branch 'python-3.3-to-3.5' into python-2.4

This commit is contained in:
rocky
2021-11-03 03:08:10 -04:00
9 changed files with 44 additions and 113 deletions

View File

@@ -24,7 +24,7 @@ from uncompyle6 import main, PYTHON3
import os, time, re, shutil, sys
from fnmatch import fnmatch
from uncompyle6 import main, PYTHON3
from uncompyle6 import main
import xdis.magics as magics
# ----- configure this for your needs
@@ -110,20 +110,16 @@ def do_tests(
files = []
cwd = os.getcwd()
os.chdir(src_dir)
if PYTHON3:
for root, dirname, names in os.walk(os.curdir):
files.extend(
[
os.path.normpath(os.path.join(root, n))
for n in names
for pat in patterns
if fnmatch(n, pat)
]
)
pass
for root, dirname, names in os.walk(os.curdir):
files.extend(
[
os.path.normpath(os.path.join(root, n))
for n in names
for pat in patterns
if fnmatch(n, pat)
]
)
pass
else:
os.path.walk(os.curdir, visitor, files)
os.chdir(cwd)
files.sort()