We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0749004 commit 2fb5ac2Copy full SHA for 2fb5ac2
CHANGELOG.rst
@@ -2,6 +2,10 @@
2
Release History
3
---------------
4
5
+2.2.1
6
+- Python source is now always read using utf-8, even if default encoding is set
7
+ otherwise.
8
+
9
2.2.0
10
11
- Added `--skip-incompatible` flag to `pip-extra-reqs`, which makes it ignore
pip_check_reqs/common.py
@@ -119,7 +119,7 @@ def find_imported_modules(options):
119
log.info('ignoring: %s', os.path.relpath(filename))
120
continue
121
log.debug('scanning: %s', os.path.relpath(filename))
122
- with open(filename) as f:
+ with open(filename, encoding='utf-8') as f:
123
content = f.read()
124
vis.set_location(filename)
125
vis.visit(ast.parse(content))
0 commit comments