Skip to content

Commit

Permalink
Merge branch 'improved-import-errors'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholek committed Jun 4, 2024
2 parents 16c4c02 + dfbcac7 commit 28b12c3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 12 additions & 3 deletions rl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
"""Alternative Python bindings for GNU Readline."""

__all__ = ['completer', 'completion', 'history', 'readline',
'generator', 'print_exc']
from __future__ import absolute_import

# Import stdlib readline if possible
try:
import readline
except:
pass
else:
del readline

# Grab the PyOS_ReadlineFunctionPointer
from rl import _init
from rl import readline

# For subclassing and Sphinx
Expand All @@ -18,3 +24,6 @@
from rl._completion import generator
from rl._completion import print_exc
from rl._history import history

__all__ = ['completer', 'completion', 'history', 'readline',
'generator', 'print_exc']
8 changes: 0 additions & 8 deletions rl/_init.py

This file was deleted.

0 comments on commit 28b12c3

Please sign in to comment.