Update to the style.
This commit is contained in:
parent
b65f78a0c7
commit
eee65f3051
@ -951,6 +951,11 @@ def hy_compile(tree, root=None):
|
|||||||
if type(_ast) == list:
|
if type(_ast) == list:
|
||||||
_ast = compiler._mangle_branch(_ast, 0, 0)
|
_ast = compiler._mangle_branch(_ast, 0, 0)
|
||||||
|
|
||||||
|
if hasattr(sys, "subversion"):
|
||||||
|
implementation = sys.subversion[0].lower()
|
||||||
|
elif hasattr(sys, "implementation"):
|
||||||
|
implementation = sys.implementation.name.lower()
|
||||||
|
|
||||||
imports = []
|
imports = []
|
||||||
for package in compiler.imports:
|
for package in compiler.imports:
|
||||||
imported = set()
|
imported = set()
|
||||||
@ -960,7 +965,7 @@ def hy_compile(tree, root=None):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
replace = form
|
replace = form
|
||||||
if hasattr(sys, "subversion") and sys.subversion[0] == "PyPy":
|
if implementation != "cpython":
|
||||||
# using form causes pypy to blow up; let's conditionally
|
# using form causes pypy to blow up; let's conditionally
|
||||||
# add this for cpython, since it won't go through and make
|
# add this for cpython, since it won't go through and make
|
||||||
# sure the AST makes sense. Muhahaha. - PRT
|
# sure the AST makes sense. Muhahaha. - PRT
|
||||||
|
Loading…
Reference in New Issue
Block a user