You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Merge branch 'python-3.3-to-3.5' into python-2.4
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user