mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
parent
5948013b1b
commit
3ed5945cb2
3 changed files with 13 additions and 35 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue