mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Fix to unbreak travis test script
This commit is contained in:
parent
245d1241c9
commit
516e88c8fc
@ -1259,13 +1259,11 @@ class Enum:
|
||||
"""
|
||||
|
||||
if __debug__:
|
||||
import string
|
||||
|
||||
# chars that cannot appear within an item string.
|
||||
InvalidChars = string.whitespace
|
||||
def _checkValidIdentifier(item):
|
||||
invalidChars = string.whitespace+string.punctuation
|
||||
invalidChars = invalidChars.replace('_','')
|
||||
import string
|
||||
invalidChars = string.whitespace + string.punctuation
|
||||
invalidChars = invalidChars.replace('_', '')
|
||||
invalidFirstChars = invalidChars+string.digits
|
||||
if item[0] in invalidFirstChars:
|
||||
raise SyntaxError("Enum '%s' contains invalid first char" %
|
||||
|
Loading…
x
Reference in New Issue
Block a user