diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-10-16 11:01:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-16 11:01:28 -0400 |
commit | 6d488f1be24c1b679931d6d02703f4a10759eb49 (patch) | |
tree | 03ca0c47f6317113825b329e7c25c46a2189156c /python/servo/lints/wpt_lint.py | |
parent | bcd8c5e5970182e1eac7cfb1e4f2ab3e23139b1a (diff) | |
parent | 2b3f6a228929a0297f82fff18bfffa98707bb031 (diff) | |
download | servo-6d488f1be24c1b679931d6d02703f4a10759eb49.tar.gz servo-6d488f1be24c1b679931d6d02703f4a10759eb49.zip |
Auto merge of #24435 - marmeladema:issue-23607/compat, r=jdm
Issue 23607: first pass of changes for compatibility with Python3
As much as i want to migrate entirely to Python3 (see #23607), it will require some time as changes in web-platform-tests are significant and rely on upstream fixes to be merged and synced downstream.
In the meantime, lets improve compatibility with Python3 so that later, migration will be less painful.
Build system is definitely not ready yet for Python3, but its a step in the right direction.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x ] `./mach build -d` does not report any errors
- [ x] `./mach test-tidy` does not report any errors
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
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):] |