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

SyntaxError: invalid syntax File "humble.py", line 137 with open(analysis_h_file, 'a+', encoding='utf8') as a_history #4

Closed
Azathothas opened this issue Apr 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Azathothas
Copy link

image
Fixed with on line 137:
image

- with (open(analysis_h_file, 'a+', encoding='utf8') as a_history,
-       open(analysis_h_file, 'r', encoding='utf8') as c_history):
+ with open(analysis_h_file, 'a+', encoding='utf8') as a_history, \
+       open(analysis_h_file, 'r', encoding='utf8') as c_history:

image

@rfc-st rfc-st self-assigned this Apr 14, 2023
rfc-st added a commit that referenced this issue Apr 14, 2023
@rfc-st rfc-st added the bug Something isn't working label Apr 14, 2023
@rfc-st
Copy link
Owner

rfc-st commented Apr 14, 2023

I have not been able to reproduce it (in Python 3.11.2 on Linux and Windows). However, I have changed the code based on your suggestion.

Thanks for reporting this error!.

@rfc-st rfc-st closed this as completed Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants