Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-modernize -f foobar raises an IndexError #195

Open
ngie-eign opened this issue Aug 23, 2019 · 1 comment
Open

python-modernize -f foobar raises an IndexError #195

ngie-eign opened this issue Aug 23, 2019 · 1 comment

Comments

@ngie-eign
Copy link

It looks like there's a bug in the code involved with printing out an error message about the option passed to -f being an invalid fixer:

$ python-modernize -f lib2to3.fixes.long -w ...
Loading the following fixers:
Traceback (most recent call last):
  File "/home/ecooper/.local/bin/python-modernize", line 10, in <module>
    sys.exit(main())
  File "/home/ecooper/.local/lib/python2.7/site-packages/libmodernize/main.py", line 171, in main
    print("    {}  ({})".format(fixname, fixname.split(".fix_", 1)[1]), file=sys.stderr)
IndexError: list index out of range
$ python-modernize --version
modernize 0.7.0
$
@Lord-Zod
Copy link

Lord-Zod commented Mar 4, 2024

I'm having this exact same problem with version 0.8.0

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants