diff options
author | marmeladema <xademax@gmail.com> | 2019-10-14 00:15:02 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-10-16 00:22:06 +0100 |
commit | 4e1ee07a79a1d4f696c259c1774e215e389c8eee (patch) | |
tree | 859b879d1bcf9a4a251d35a189b2a14b1b35e6e0 /python/servo/lints/wpt_lint.py | |
parent | eda6d3e0c5938fe161ed3821a8e984c9e14a6b8e (diff) | |
download | servo-4e1ee07a79a1d4f696c259c1774e215e389c8eee.tar.gz servo-4e1ee07a79a1d4f696c259c1774e215e389c8eee.zip |
Improve print statement compatibility with Python3
Diffstat (limited to 'python/servo/lints/wpt_lint.py')
-rw-r--r-- | python/servo/lints/wpt_lint.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/lints/wpt_lint.py b/python/servo/lints/wpt_lint.py index a1c7e528c77..e2e44c729ae 100644 --- a/python/servo/lints/wpt_lint.py +++ b/python/servo/lints/wpt_lint.py @@ -7,6 +7,8 @@ # option. This file may not be copied, modified, or distributed # except according to those terms. +from __future__ import print_function + import os import sys @@ -20,7 +22,7 @@ class Lint(LintRunner): def _get_wpt_files(self, suite): working_dir = os.path.join(WPT_PATH, suite, '') file_iter = self.get_files(working_dir, exclude_dirs=[]) - print '\nRunning the WPT lint on %s...' % working_dir + print('\nRunning the WPT lint on %s...' % working_dir) for f in file_iter: if filter_file(f): yield f[len(working_dir):] |