3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 06:15:46 +00:00

Fixed Python 2.x vs 3.x issues.

Fixes Z3Prover/bin/#2.
This commit is contained in:
Christoph M. Wintersteiger 2015-11-19 23:24:04 +01:00
parent 5948013b1b
commit b2281f956b
3 changed files with 13 additions and 35 deletions

View file

@ -510,15 +510,11 @@ def dos2unix(fname):
if is_verbose():
print("dos2unix '%s'" % fname)
def dos2unix_tree_core(pattern, dir, files):
for filename in files:
if fnmatch(filename, pattern):
fname = os.path.join(dir, filename)
if not os.path.isdir(fname):
dos2unix(fname)
def dos2unix_tree():
os.walk('src', dos2unix_tree_core, '*')
for root, dirs, files in os.walk('src'):
for f in files:
dos2unix(os.path.join(root, f))
def check_eol():
if not IS_WINDOWS: