Proper version, no bugs, shorter.

This commit is contained in:
Marcos Dione
2017-02-06 21:44:28 +01:00
committed by GitHub
parent 593734b770
commit b00d8bf474
+1 -1
View File
@@ -87,5 +87,5 @@ codes = LookupDict(name='status_codes')
for code, titles in _codes.items():
for title in titles:
setattr(codes, title, code)
if not title.startswith('\\') and not title.strartswith('/'):
if not if not title.startswith(('\\', '/')):
setattr(codes, title.upper(), code)