fix get_backend use of __import__

This commit is contained in:
Benjamin Dauvergne 2011-04-30 22:30:32 +02:00
parent 41d42df25a
commit d016fab950
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ DUMMY = 'dummy'
def get_backend(kind):
'''Resolve a backend name into a module object'''
module = __import__(kind)
module = __import__(kind, globals(), locals(), [], -1)
return module.Payment
class Payment(object):