ThirdParty/Jasy/jasy/parse/AbstractNode.py

changeset 6650
1dd52aa8897c
parent 5843
76eee727ccd9
diff -r f1b3a73831c9 -r 1dd52aa8897c ThirdParty/Jasy/jasy/parse/AbstractNode.py
--- a/ThirdParty/Jasy/jasy/parse/AbstractNode.py	Sat Jan 12 11:26:32 2019 +0100
+++ b/ThirdParty/Jasy/jasy/parse/AbstractNode.py	Sat Jan 12 12:11:42 2019 +0100
@@ -3,8 +3,6 @@
 # Copyright 2013-2014 Sebastian Werner
 #
 
-from __future__ import unicode_literals
-
 import json, copy
 
 class AbstractNode(list):
@@ -332,7 +330,7 @@
         """Returns the source code of the node"""
 
         if not self.tokenizer:
-            raise Exception("Could not find source for node '%s'" % self.type)
+            raise Exception("Could not find source for node '%s'" % node.type)
 
         if getattr(self, "start", None) is not None:
             if getattr(self, "end", None) is not None:

eric ide

mercurial