diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2019-09-10 11:19:02 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-09-10 10:19:02 +0200 |
commit | 8ae94aa2e12817a366350326293333ae4ba3351d (patch) | |
tree | 2af5334ec220245005986f76d3afc1f69d87d793 /astroid/modutils.py | |
parent | b6f51e3dc7d2381d236c963df54f62c4acd80a14 (diff) | |
download | astroid-git-8ae94aa2e12817a366350326293333ae4ba3351d.tar.gz |
Remove redundant compatibility code (#693)
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index cc5fc56f..0c009b13 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -137,10 +137,6 @@ def _canonicalize_path(path): def _path_from_filename(filename, is_jython=IS_JYTHON): if not is_jython: - if sys.version_info > (3, 0): - return filename - if filename.endswith(".pyc"): - return filename[:-1] return filename head, has_pyclass, _ = filename.partition("$py.class") if has_pyclass: |