EC-DIGIT-CSIRC/sysdiagnose

simplify all of the python version checks. Since we use python3 syntax, the file won't run anyway in python2.x . So get rid of the version check all together!

Closed this issue · 0 comments

if sys.version_info[0] < 3:

Apply this to all files where the version check is present. It's really a useless if statement.
Reasoning: Since all files, use python3 syntax only (f-strings, print(), etc.), the file won't run anyway in python2.x . So get rid of the version check all together! If you try to run it in python2, the interpreter will spit out the file anyway.