rfc-st / humble

A humble, and 𝗳𝗮𝘀𝘁, security-oriented HTTP headers analyzer.
https://github.com/rfc-st/humble
MIT License
255 stars 18 forks source link

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

Closed Azathothas closed 1 year ago

Azathothas commented 1 year ago

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 commented 1 year ago

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