Skip to content

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

Closed

Description

@Azathothas

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

Activity

  1. self-assigned this
    on Apr 14, 2023
  2. added a commit that references this issue on Apr 14, 2023
  3. rfc-st commented on Apr 14, 2023

    @rfc-st
    Owner

    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!.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsolved

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions