Changeset 1394
- Timestamp:
- 03/08/04 21:13:25 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r1384 r1394 22 22 # 23 23 # $Log$ 24 # Revision 1.78 2004/03/08 20:13:25 jalet 25 # Allow names to begin with a digit 26 # 24 27 # Revision 1.77 2004/03/03 13:10:35 jalet 25 28 # Now catches all smtplib exceptions when there's a problem sending messages … … 426 429 asciiletters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' 427 430 digits = '0123456789' 428 if name[0] in asciiletters : 429 validchars = asciiletters + digits + "-_." 430 for c in name[1:] : 431 if c not in validchars : 432 return 0 433 return 1 434 return 0 431 validchars = asciiletters + digits + "-_." 432 for c in name : 433 if c not in validchars : 434 return 0 435 return 1 435 436 436 437 def matchString(self, s, patterns) :