Skip to content

TypeError #10

Description

@chenyichie

I'm using wsl 22.04, and run "python3 main.py --ifile=main.pyc --ofile=mainfixed.pyc", then get this error:

INFO:main:Opening file main.pyc
Traceback (most recent call last):
File "/home/user/bytecode_simplifier/main.py", line 72, in
process(args.ifile, args.ofile)
File "/home/user/bytecode_simplifier/main.py", line 52, in process
if not header.startswith('\x03\xF3\x0D\x0A'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

I'm using python3, is this a python2 project?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions