Skip to content

Instantly share code, notes, and snippets.

@pitrou
Created June 25, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pitrou/60594b28d8e47edcdb97d9b15d5f9866 to your computer and use it in GitHub Desktop.
Save pitrou/60594b28d8e47edcdb97d9b15d5f9866 to your computer and use it in GitHub Desktop.
Lib/encodings/idna.py
38: raise UnicodeError("Invalid character %r" % c)
51: raise UnicodeError("Violation of BIDI requirement 2")
58: raise UnicodeError("Violation of BIDI requirement 3")
66: except UnicodeError:
73: raise UnicodeError("label empty or too long")
82: except UnicodeError:
88: raise UnicodeError("label empty or too long")
92: raise UnicodeError("Label starts with ACE prefix")
103: raise UnicodeError("label empty or too long")
113: except UnicodeError:
121: except UnicodeError:
122: raise UnicodeError("Invalid character in IDN label")
139: raise UnicodeError("IDNA does not round-trip", label, label2)
151: raise UnicodeError("unsupported error handling "+errors)
165: raise UnicodeError("label empty or too long")
167: raise UnicodeError("label too long")
187: raise UnicodeError("Unsupported error handling "+errors)
222: raise UnicodeError("unsupported error handling "+errors)
256: raise UnicodeError("Unsupported error handling "+errors)
Lib/encodings/punycode.py
137: raise UnicodeError("incomplete punicode string")
145: raise UnicodeError("Invalid extended code point '%s'"
174: raise UnicodeError("Invalid character U+%x" % char)
206: raise UnicodeError("Unsupported error handling "+errors)
217: raise UnicodeError("Unsupported error handling "+self.errors)
Lib/encodings/undefined.py
19: raise UnicodeError("undefined encoding")
22: raise UnicodeError("undefined encoding")
26: raise UnicodeError("undefined encoding")
30: raise UnicodeError("undefined encoding")
Lib/encodings/utf_16.py
67: raise UnicodeError("UTF-16 stream does not start with BOM")
141: raise UnicodeError("UTF-16 stream does not start with BOM")
Lib/encodings/utf_32.py
62: raise UnicodeError("UTF-32 stream does not start with BOM")
136: raise UnicodeError("UTF-32 stream does not start with BOM")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment