Skip to content

Commit

Permalink
Removed old compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
vmagamedov committed Oct 5, 2020
1 parent cb7dc4c commit 3b34f19
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions hiku/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,14 @@
import ast as _ast


PY36 = sys.version_info >= (3, 6)
PY38 = sys.version_info >= (3, 8)
try:
import __pypy__ # noqa
PYPY = True
except ImportError:
PYPY = False


class _AST:

def __getattr__(self, name):
return getattr(_ast, name)

if PY36:
comprehension = _ast.comprehension
else:
@staticmethod
def comprehension(target, iter, ifs, _):
return _ast.comprehension(target, iter, ifs)

if PY38:
arguments = _ast.arguments
else:
Expand Down

0 comments on commit 3b34f19

Please sign in to comment.