Permalink
Browse files

minor fix

  • Loading branch information...
1 parent ba1c749 commit 6b8e46f685b8f5de5599bd4d477d13473259b312 @sunng87 committed Feb 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 clj.py
View
6 clj.py
@@ -50,8 +50,8 @@ def number(v):
return int(v)
_STOP_CHARS = [" ", ",", "\n", "\r", "\t"]
-_COLL_OPEN_CHARS = ["#", "[", "{"]
-_COLL_CLOSE_CHARS = ["]", "}"]
+_COLL_OPEN_CHARS = ["#", "[", "{", "("]
+_COLL_CLOSE_CHARS = ["]", "}", ")"]
_EXTRA_NUM_CHARS = ["-", "+", ".", "e", "E"]
class CljDecoder(object):
@@ -232,7 +232,7 @@ def get_type(self,t):
return ("string", False)
elif isinstance(t, bool):
return ("boolean", False)
- elif isinstance(t, float) or isinstance(t, int):
+ elif isinstance(t, (int,float,long)):
return ("number", False)
elif isinstance(t, dict):
return ("dict", True)

0 comments on commit 6b8e46f

Please sign in to comment.