Changeset 617 in products


Ignore:
Timestamp:
Nov 6, 2006 2:11:06 PM (13 years ago)
Author:
crchemist
Message:

Clean up code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qPloneCaptchas/trunk/utils.py

    r480 r617  
    145145def parseKey(s): 
    146146    ps = re.match('^(.+?)_(.+?)_', s) 
     147    if ps is None: 
     148        return {'date': '', 'key': ''} 
    147149    return {'date': ps.group(1), 'key':ps.group(2)} 
    148150 
Note: See TracChangeset for help on using the changeset viewer.