Permalink
Browse files

Fixed problem with using tagged elements in collections

  • Loading branch information...
1 parent b5d9646 commit 652ffc71071eb9484e04f53a6e8200d1e7fb9069 @wlabelle wlabelle committed Dec 11, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 clj.py
View
8 clj.py
@@ -230,6 +230,10 @@ def __read_token(self):
s = self.__read_token()
if not isinstance(s, str):
raise ValueError('Str expected, but got %s' % str(s))
+
+ ## remove read string from the value_stack
+ if(self.value_stack) > 0:
+ self.value_stack[-1][0].pop()
e = '"'
v = pyrfc3339.parse(s)
@@ -241,6 +245,10 @@ def __read_token(self):
s = self.__read_token()
if not isinstance(s, str):
raise ValueError('Str expected, but got %s' % str(s))
+
+ ## remove read string from the value_stack
+ if len(self.value_stack) > 0:
+ self.value_stack[-1][0].pop()
e = '"'
v = uuid.UUID(s)

0 comments on commit 652ffc7

Please sign in to comment.