Skip to content

Commit 14613f6

Browse files
committed
Fixed Enum import error handling
1 parent f20f62b commit 14613f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
setup(
44
name='var_dump',
5-
version='1.1',
5+
version='1.2',
66
packages=['var_dump'],
77
url='http://github.com/sha256/python-var-dump',
88
license='BSD',
99
author='Shamim Hasnath',
1010
author_email='[email protected]',
11-
description='PHP like var_dump for python',
11+
description='var_dump for python',
1212
download_url='http://github.com/sha256/python-var-dump/tarball',
1313
classifiers=[
1414
'Development Status :: 5 - Production/Stable',

var_dump/_var_dump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
try:
55
from enum import Enum
6-
except expression as identifier:
6+
except ImportError:
77
Enum = type(str)
88

99
try:
@@ -18,7 +18,7 @@
1818
__author__ = "Shamim Hasnath"
1919
__copyright__ = "Copyright 2013, Shamim Hasnath"
2020
__license__ = "BSD License"
21-
__version__ = "1.1.0"
21+
__version__ = "1.2.0"
2222

2323
TAB_SIZE = 4
2424

0 commit comments

Comments
 (0)