mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
Fix list_files.py so it is python3-compatible.
Cf. 86fe7ca75c
Change-Id: I17bb00b6e39fe27c725a2026a4ced824ad360a4c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135624
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
11ae06e988
commit
29c50c6ebe
|
@ -48,7 +48,7 @@ def main(argv):
|
||||||
else:
|
else:
|
||||||
fullname = os.path.relpath(os.path.join(root, filename))
|
fullname = os.path.relpath(os.path.join(root, filename))
|
||||||
fullname = fullname.replace(os.sep, '/')
|
fullname = fullname.replace(os.sep, '/')
|
||||||
print fullname
|
print (fullname)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -35,7 +35,7 @@ def main(argv):
|
||||||
fullname = os.path.relpath(os.path.join(root, filename))
|
fullname = os.path.relpath(os.path.join(root, filename))
|
||||||
fullname = fullname.replace(os.sep, '/')
|
fullname = fullname.replace(os.sep, '/')
|
||||||
if re.search(pattern, fullname):
|
if re.search(pattern, fullname):
|
||||||
print fullname
|
print (fullname)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue