mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Allow both string and Unicode objects in levels.
This commit is contained in:
parent
2411a2dd82
commit
3ae84b6389
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ for feature in features:
|
|||
verify(type(major) is IntType, "optional major isn't int")
|
||||
verify(type(minor) is IntType, "optional minor isn't int")
|
||||
verify(type(micro) is IntType, "optional micro isn't int")
|
||||
verify(type(level) is StringType, "optional level isn't string")
|
||||
verify(isinstance(level, basestring), "optional level isn't string")
|
||||
verify(level in GOOD_SERIALS,
|
||||
"optional level string has unknown value")
|
||||
verify(type(serial) is IntType, "optional serial isn't int")
|
||||
|
@ -46,7 +46,7 @@ for feature in features:
|
|||
verify(type(major) is IntType, "mandatory major isn't int")
|
||||
verify(type(minor) is IntType, "mandatory minor isn't int")
|
||||
verify(type(micro) is IntType, "mandatory micro isn't int")
|
||||
verify(type(level) is StringType, "mandatory level isn't string")
|
||||
verify(isinstance(level, basestring), "mandatory level isn't string")
|
||||
verify(level in GOOD_SERIALS,
|
||||
"mandatory serial string has unknown value")
|
||||
verify(type(serial) is IntType, "mandatory serial isn't int")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue