You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactored submission code to be clearer and only do mimetype extraction in one place, made the point where files are saved less obscure, fixed bytes/str issues for file read and write, fixed regex strings, fixed variable name visibility due to scope changes in py3.
self.parsed_info.add_error(('The document name on the first page, "%s", contains a disallowed character with byte code: %s '% (name.decode('utf-8','replace'), ord(extra_chars[0]))) +
60
-
'(see https://www.ietf.org/id-info/guidelines.html#naming for details).')
self.parsed_info.add_error(('The document name on the first page, "%s", contains a disallowed character with byte code: %s '% (name.decode('utf-8','replace'), ord(extra_chars[0]))) +
56
+
'(see https://www.ietf.org/id-info/guidelines.html#naming for details).')
57
+
else:
58
+
self.parsed_info.add_error(('The document name on the first page, "%s", contains disallowed characters with byte codes: %s '% (name.decode('utf-8','replace'), (', '.join([ str(ord(c)) forcinextra_chars] )))) +
59
+
'(see https://www.ietf.org/id-info/guidelines.html#naming for details).')
self.parsed_info.add_error(('The document name on the first page, "%s", contains disallowed characters with byte codes: %s '% (name.decode('utf-8','replace'), (', '.join([ str(ord(c)) forcinextra_chars] )))) +
63
-
'(see https://www.ietf.org/id-info/guidelines.html#naming for details).')
0 commit comments