We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running black on the following file an INTERNAL ERROR is raised.
def bar(): """some docstring """ try: print('do some stuff') except Exception, e: pass
This is the generated diff.
--- src +++ dst @@ -14,11 +14,11 @@ body= Expr( value= Constant( value= - b'some docstring\n ', # bytes + b'some docstring', # bytes ) # /Constant ) # /Expr TryExcept( body= Print(
This the full error:
INTERNAL ERROR: Black produced code that is not equivalent to the source.
The text was updated successfully, but these errors were encountered:
Hi, I'm closing this as it's a duplicate of #1635 (er actually this is a duplicate of #1663 apparently).
(black) ichard26@acer-ubuntu:~/programming/oss/black$ python --version ; git log --oneline -n 1 Python 3.8.5 4070527 (HEAD -> main, upstream/master, caching) Switch to pytest and tox (#1763) (black) ichard26@acer-ubuntu:~/programming/oss/black$ cat temp.py def bar(): """some docstring """ try: print("do some stuff") except Exception, e: pass (black) ichard26@acer-ubuntu:~/programming/oss/black$ black temp.py --diff --color error: cannot format temp.py: INTERNAL ERROR: Black produced code that is not equivalent to the source. Please report a bug on https://github.com/psf/black/issues. This diff might be helpful: /tmp/blk_9_gz0d1n.log Oh no! 💥 💔 💥 1 file would fail to reformat. (black) ichard26@acer-ubuntu:~/programming/oss/black$ black temp.py --diff --color --fast --- temp.py 2020-10-26 22:51:32.886060 +0000 +++ temp.py 2020-10-26 22:52:06.607420 +0000 @@ -1,7 +1,6 @@ def bar(): - """some docstring - """ + """some docstring""" try: print("do some stuff") except Exception, e: pass would reformat temp.py All done! ✨ 🍰 ✨ 1 file would be reformatted.
Sorry, something went wrong.
No branches or pull requests
When running black on the following file an INTERNAL ERROR is raised.
This is the generated diff.
This the full error:
The text was updated successfully, but these errors were encountered: