Skip to content

Commit 5684c18

Browse files
Lint check & fix to python3 format (#18)
* lint check and change files from python2 to python3 * pre-commit check for these files
1 parent 3705663 commit 5684c18

File tree

7 files changed

+834
-547
lines changed

7 files changed

+834
-547
lines changed

Diff for: devutils/makesdist

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ sys.path.insert(0, BASEDIR)
1717
from setup import versiondata
1818
timestamp = versiondata.getint('DEFAULT', 'timestamp')
1919

20-
print 'Run "setup.py sdist --formats=tar"',
20+
print('Run "setup.py sdist --formats=tar"',)
2121
cmd_sdist = [sys.executable] + 'setup.py sdist --formats=tar'.split()
2222
ec = subprocess.call(cmd_sdist, cwd=BASEDIR, stdout=open(os.devnull, 'w'))
2323
if ec: sys.exit(ec)
24-
print "[done]"
24+
print("[done]")
2525

2626
tarname = max(glob.glob(BASEDIR + '/dist/*.tar'), key=os.path.getmtime)
2727

@@ -36,8 +36,8 @@ def fixtarinfo(tinfo):
3636
return tinfo
3737

3838

39-
print 'Filter %s --> %s.gz' % (2 * (os.path.basename(tarname),)),
39+
print('Filter %s --> %s.gz' % (2 * (os.path.basename(tarname),)),)
4040
for ti in tfin:
4141
tfout.addfile(fixtarinfo(ti), tfin.extractfile(ti))
4242
os.remove(tarname)
43-
print "[done]"
43+
print("[done]")

Diff for: devutils/prep.py

-2
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,3 @@ def rm(directory, filerestr):
111111
print "==== Scrubbing Endlines ===="
112112
# All *.srmise and *.pwa files in examples directory.
113113
scrubeol("../doc/examples/output", r".*(\.srmise|\.pwa)")
114-
115-

0 commit comments

Comments
 (0)