diff options
author | Tushar Gohad <tushar.gohad@intel.com> | 2015-07-22 09:25:56 -0700 |
---|---|---|
committer | Tushar Gohad <tushar.gohad@intel.com> | 2015-07-22 09:26:08 -0700 |
commit | 223241529a027ab66dc4bdcc839e574de11d407d (patch) | |
tree | 9b3caf903f4b459ca854aed1901fb32642733914 /pyeclib/utils.py | |
parent | ffaa7addbceec6f1811363bdf9a88a499ef75840 (diff) | |
download | pyeclib-pep8_fixes.tar.gz |
PEP8 fixespep8_fixes
Still TODO: test code
Diffstat (limited to 'pyeclib/utils.py')
-rw-r--r-- | pyeclib/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyeclib/utils.py b/pyeclib/utils.py index 74c3933..3b7e535 100644 --- a/pyeclib/utils.py +++ b/pyeclib/utils.py @@ -50,7 +50,7 @@ def import_class(import_str): try: __import__(mod_str) return getattr(sys.modules[mod_str], class_str) - except (ValueError, AttributeError) as e: + except (ValueError, AttributeError): raise ImportError('Class %s cannot be found (%)' % (class_str, traceback.format_exception(*sys.exc_info()))) @@ -68,7 +68,7 @@ def create_instance(import_str, *args, **kwargs): """ try: object_class = import_class(import_str) - except Exception as e: + except Exception: raise instance = object_class(*args, **kwargs) |