E5Network/E5RFC6266.py

changeset 4555
861e1741985c
parent 4543
2e6a880670e9
child 4631
5c1a96925da4
--- a/E5Network/E5RFC6266.py	Thu Nov 12 19:17:05 2015 +0100
+++ b/E5Network/E5RFC6266.py	Fri Nov 13 22:52:26 2015 +0100
@@ -39,7 +39,7 @@
             """
             if key in self:
                 raise DuplicateParamError(key)
-            super().__setitem__(key, value)
+            super(UniqueNamespace, self).__setitem__(key, value)
 
     # RFC 2616
     separator_chars = "()<>@,;:\\\"/[]?={} \t"      # __IGNORE_WARNING__
@@ -88,7 +88,7 @@
         grammar = re.compile(r'"({0}|{1})+"'.format(quoted_pair_re, qdtext_re))
 
         def __str__(self):
-            s = super().__str__()
+            s = super(QuotedString, self).__str__()
             s = s[1:-1]  # remove quotes
             s = re.sub(r'\\(.)', r'\1', s)  # drop backslashes
             return s
@@ -142,7 +142,7 @@
         regex = re.compile(token_re + r'\*')
 
         def __str__(self):
-            return super().__str__().lower()
+            return super(ExtToken, self).__str__().lower()
 
     class NoExtToken(peg.Symbol):
         """
@@ -151,7 +151,7 @@
         regex = re.compile(token_re + r'(?<!\*)')
 
         def __str__(self):
-            return super().__str__().lower()
+            return super(NoExtToken, self).__str__().lower()
 
     class DispositionParm(str):
         """

eric ide

mercurial