I received a SyntaxError report from a user (related to f-string)
gcg@gcg:~/Documents/LaTex/CV1/tech inf ecole$ todo
File "/usr/bin/todo", line 69
output_str += f"{'This' if weeks_left == 0 else 'Next'} {self.exp_date.strftime('%A')}; "
^
SyntaxError: invalid syntax
gcg@gcg:~/Documents/LaTex/CV1/tech inf ecole$ python --version
Python 3.6.7
My test result:
3.5.5 -> SyntaxError
>= 3.6 -> OK
Maybe it's because the user's /usr/bin/env python3 is invoking python3.5 somehow?
I think it would be better if we replace f-string with old formatting syntax, so that users that has python < 3.6 can also use py-todo.
I received a SyntaxError report from a user (related to f-string)
My test result:
Maybe it's because the user's
/usr/bin/env python3
is invoking python3.5 somehow? I think it would be better if we replace f-string with old formatting syntax, so that users that has python < 3.6 can also use py-todo.