Removing dead check for config ending with .py.

This commit is contained in:
Jeremy M. Jones
2011-09-02 12:47:55 -04:00
parent 62811adb13
commit 8ab5418903

View File

@@ -175,9 +175,6 @@ def import_module(conf):
:param conf: The string to the configuration. Automatically strips off ".py" file extensions.
'''
if conf.endswith('.py'):
conf = conf[:-3]
if '.' in conf:
parts = conf.split('.')
name = '.'.join(parts[:-1])