aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy/tidy.py
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-05-18 11:07:26 +0200
committerMs2ger <Ms2ger@gmail.com>2016-05-18 11:09:29 +0200
commitc652995d16d18e5fc9a435f2f96aced63a4038d4 (patch)
treee74445b19edc0ddd4eeb4cdf1068d9c0ec4db166 /python/tidy/servo_tidy/tidy.py
parentc057ace251eb8533fd4ce17bbf97f8953a92acf9 (diff)
downloadservo-c652995d16d18e5fc9a435f2f96aced63a4038d4.tar.gz
servo-c652995d16d18e5fc9a435f2f96aced63a4038d4.zip
Support test-tidy --faster with moved files.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r--python/tidy/servo_tidy/tidy.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index c3c603c7c11..b05412f2dcb 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -585,6 +585,9 @@ def collect_errors_for_files(files_to_check, checking_functions, line_checking_f
if print_text:
print '\rChecking files for tidiness...'
for filename in files_to_check:
+ if not os.path.exists(filename):
+ continue
+
with open(filename, "r") as f:
contents = f.read()
for check in checking_functions: