diff options
| author | hkm <hkm@mail.ru> | 2019-12-15 21:47:57 +0300 |
|---|---|---|
| committer | hkm <hkm@mail.ru> | 2019-12-15 21:47:57 +0300 |
| commit | 1ca9dacbfe529282ac286a3a61542167e5d6bc65 (patch) | |
| tree | 45a1859d0598686b6d2512e0238909dae1d70858 /sphinx/pycode | |
| parent | 264329079b6b65da90adfec15baff841a01727cf (diff) | |
| download | sphinx-git-1ca9dacbfe529282ac286a3a61542167e5d6bc65.tar.gz | |
Added test case for non ASCII & non UTF8 encoding Windows-1251 in test_pycode section
Diffstat (limited to 'sphinx/pycode')
| -rw-r--r-- | sphinx/pycode/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py index 2a3b7763c..483eed432 100644 --- a/sphinx/pycode/__init__.py +++ b/sphinx/pycode/__init__.py @@ -67,7 +67,7 @@ class ModuleAnalyzer: if source is not None: obj = cls.for_string(source, modname, filename if filename is not None else '<string>') elif filename is not None: - obj = cls.for_file(source, modname) + obj = cls.for_file(filename, modname) except PycodeError as err: cls.cache['module', modname] = err raise |
