You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Remove PYTHON3
This commit is contained in:
@@ -25,7 +25,7 @@ from __future__ import print_function
|
||||
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
|
||||
@@ -111,20 +111,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