Hack Forums
[Python] Invalid syntax, not sure why? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Invalid syntax, not sure why? (/showthread.php?tid=5767854)



Invalid syntax, not sure why? - M O D E R N - Dec 13, 2017

Code
save_file_ptr = open("%s.txt" % save_file, "w")

Not sure what is wrong with this?


RE: Invalid syntax, not sure why? - Not Your Average Orange - Dec 13, 2017

Can you give us the rest of your code? I didn't get an error.
It's likely there are some unclosed brackets.


RE: Invalid syntax, not sure why? - M O D E R N - Dec 13, 2017

Nevermind I fixed the issues!

https://github.com/ModernAesthetics/Paste-Scraper