Commit 4e3673c
Fix bpython-curses bug when passed an argument
Currently, running `bpython-curses -i file.py` results in:
```
...
File ".local/share/virtualenvs/flask-ex-03Wix3mp/lib/python3.6/site-packages/bpython/cli.py", line 1905, in main_curses
bpython.args.exec_code(interpreter, args)
NameError: name 'bpython' is not defined
```
This PR addresses this error by correctly importing args and using it,
like the curtsies implementation.1 parent ae4a502 commit 4e3673c
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
1914 | 1915 | | |
1915 | 1916 | | |
1916 | 1917 | | |
1917 | | - | |
| 1918 | + | |
1918 | 1919 | | |
1919 | 1920 | | |
1920 | 1921 | | |
| |||
0 commit comments