Skip to content

Commit

Permalink
Import errors and exceptions are incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomohikoseven committed Sep 11, 2017
1 parent 11067b7 commit f09c64f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pylsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from lsd import lsd
from . import lsd
2 changes: 1 addition & 1 deletion pylsd/bindings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from lsd_ctypes import *
from .lsd_ctypes import *
2 changes: 1 addition & 1 deletion pylsd/bindings/lsd_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def load_lsd_library():
try:
lsdlib = ctypes.cdll[os.path.join(root_dir, libdir, libname)]
return lsdlib
except Exception, e:
except Exception as e:
pass
tmp = os.path.dirname(root_dir)
if tmp == root_dir:
Expand Down
2 changes: 1 addition & 1 deletion pylsd/lsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @Link : https://github.com/primetang/pylsd
# @Version : 0.0.1

from bindings.lsd_ctypes import *
from .bindings.lsd_ctypes import *


def lsd(src):
Expand Down

0 comments on commit f09c64f

Please sign in to comment.