urllib.parse: No tracebacks in uPy.

pull/118/head
Paul Sokolovsky 2014-05-23 02:15:01 +03:00
rodzic 71c844f018
commit f5a9ad2d61
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -757,9 +757,9 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
# allowed empty dicts that type of behavior probably should be # allowed empty dicts that type of behavior probably should be
# preserved for consistency # preserved for consistency
except TypeError: except TypeError:
ty, va, tb = sys.exc_info() # ty, va, tb = sys.exc_info()
raise TypeError("not a valid non-string sequence " raise TypeError("not a valid non-string sequence "
"or mapping object").with_traceback(tb) "or mapping object")#.with_traceback(tb)
l = [] l = []
if not doseq: if not doseq: