Show
Ignore:
Timestamp:
11/26/03 00:46:40 (20 years ago)
Author:
jalet
Message:

Don't try to verify if module name is valid, Python does this better than us.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounter.py

    r1180 r1219  
    2222# 
    2323# $Log$ 
     24# Revision 1.7  2003/11/25 23:46:40  jalet 
     25# Don't try to verify if module name is valid, Python does this better than us. 
     26# 
    2427# Revision 1.6  2003/11/12 23:28:55  jalet 
    2528# More work on new backend. This commit may be unstable. 
     
    9497    (backend, args) = kotafilter.config.getAccounterBackend(kotafilter.printername) 
    9598    try : 
    96         if not backend.isalpha() : 
    97             # don't trust user input 
    98             raise ImportError 
    99         exec "from pykota.accounters import %s as accounterbackend" % backend.lower()     
     99        exec "from pykota.accounters import %s as accounterbackend" % backend.lower() 
    100100    except ImportError : 
    101101        raise PyKotaAccounterError, _("Unsupported accounter backend %s") % backend