Commits

Anonymous committed efd22ab

nicer repr(Literal(...))

Comments (0)

Files changed (2)

docs/heading.en.yinc2

 div id="headline" {
     p > pyPEG – a PEG Parser-Interpreter in Python
     div class="small" {
-        "pyPEG 2.4.1 of Fr Jun 01 2012 – Copyleft 2009-2012, "
+        "pyPEG 2.4.2 of Fr Jun 01 2012 – Copyleft 2009-2012, "
         a "http://fdik.org", "Volker Birk";
     }
     div id=python1 p {

pypeg2/__init__.py

         if isinstance(self, Literal._basic_types):
             return type(self).__name__ + "(" + super().__repr__() + ")"
         else:
-            return type(self).__name__ + "(" + str(self.value) + ")"
+            return type(self).__name__ + "(" + repr(self.value) + ")"
 
     
 class List(list):