Skip to content

bpython doesn't work with Python 3 #84

@ikanobori

Description

@ikanobori
Traceback (most recent call last):
  File "./bpython", line 6, in <module>
    sys.exit(main())
  File "/home/henry/.local/lib/python3.1/site-packages/bpython/cli.py", line 1594, in ma n
    banner=banner)
  File "/home/henry/.local/lib/python3.1/site-packages/bpython/cli.py", line 1496, in cu ses_wrapper
    return func(stdscr, *args, **kwargs)
  File "/home/henry/.local/lib/python3.1/site-packages/bpython/cli.py", line 1551, in ma n_curses
    repl.startup()
  File "/home/henry/.local/lib/python3.1/site-packages/bpython/repl.py", line 313, in st rtup
    self.interp.runsource(f.read(), filename, 'exec', encode=False)
TypeError: runsource() got an unexpected keyword argument 'encode'

The attached patch fixes the problem.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions