1. Keisuke Takahashi
  2. pypy

Commits

Seo Sanghyeon  committed 2a7344d

Fix for 2.2. isinstance(X, bool) is illegal.

  • Participants
  • Parent commits 1a13d91
  • Branches default

Comments (0)

Files changed (1)

File pypy/translator/tool/buildcl.py

View file
  • Ignore whitespace
         return Literal(s)
 
 def writelisp(gen, obj):
-    if isinstance(obj, (bool, int, type(None), str)):
+    #if isinstance(obj, (bool, int, type(None), str)):
+    if isinstance(obj, (int, type(None), str)):
         return gen.conv(obj)
     if isinstance(obj, (tuple, list)):
         content = ' '.join([writelisp(gen, elt) for elt in obj])