|
39 | 39 | # - Instead the suspend key exits the program |
40 | 40 | # - View source doesn't work on windows unless you install the less program (From GnuUtils or Cygwin) |
41 | 41 |
|
42 | | -from __future__ import division |
| 42 | +from __future__ import division, absolute_import |
43 | 43 |
|
44 | 44 | import platform |
45 | 45 | import os |
|
63 | 63 | # These are used for syntax highlighting |
64 | 64 | from pygments import format |
65 | 65 | from pygments.formatters import TerminalFormatter |
66 | | -from bpython._py3compat import PythonLexer |
| 66 | +from ._py3compat import PythonLexer |
67 | 67 | from pygments.token import Token |
68 | | -from bpython.formatter import BPythonFormatter |
| 68 | +from .formatter import BPythonFormatter |
69 | 69 |
|
70 | 70 | # This for completion |
71 | | -from bpython import importcompletion |
| 71 | +from . import importcompletion |
72 | 72 |
|
73 | 73 | # This for config |
74 | | -from bpython.config import Struct, getpreferredencoding |
| 74 | +from .config import Struct, getpreferredencoding |
75 | 75 |
|
76 | 76 | # This for keys |
77 | | -from bpython.keys import cli_key_dispatch as key_dispatch |
| 77 | +from .keys import cli_key_dispatch as key_dispatch |
78 | 78 |
|
79 | 79 | # This for i18n |
80 | | -from bpython import translations |
81 | | -from bpython.translations import _ |
| 80 | +from . import translations |
| 81 | +from .translations import _ |
82 | 82 |
|
83 | | -from bpython import repl |
84 | | -from bpython._py3compat import py3 |
85 | | -from bpython.pager import page |
86 | | -import bpython.args |
| 83 | +from . import repl |
| 84 | +from ._py3compat import py3 |
| 85 | +from .pager import page |
| 86 | +from .args import parse as argsparse |
87 | 87 |
|
88 | 88 | if not py3: |
89 | 89 | import inspect |
@@ -1946,7 +1946,7 @@ def main(args=None, locals_=None, banner=None): |
1946 | 1946 | translations.init() |
1947 | 1947 |
|
1948 | 1948 |
|
1949 | | - config, options, exec_args = bpython.args.parse(args) |
| 1949 | + config, options, exec_args = argsparse(args) |
1950 | 1950 |
|
1951 | 1951 | # Save stdin, stdout and stderr for later restoration |
1952 | 1952 | orig_stdin = sys.stdin |
|
0 commit comments