Skip to content

Commit

Permalink
Lib: Use absolute import for ldap.pkginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Viktorin committed Nov 24, 2017
1 parent 4c9c526 commit dab4f67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Lib/ldap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# This is also the overall release version number

from pkginfo import __version__, __author__, __license__
from ldap.pkginfo import __version__, __author__, __license__

import sys

Expand All @@ -17,8 +17,6 @@
_trace_file = sys.stderr
_trace_stack_limit = None

from ldap.pkginfo import __version__

import _ldap
assert _ldap.__version__==__version__, \
ImportError('ldap %s and _ldap %s version mismatch!' % (__version__,_ldap.__version__))
Expand Down

0 comments on commit dab4f67

Please sign in to comment.