Reputation: 3335
My code is:
if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
the error is:
if any(s in attrs["show"] for s in ("Apple Mac OS","Intel Mac OS")):
^
SyntaxError: invalid syntax
I could run the same script successfully on one machine, then I just copied it to another machine, it returns this error, really don't know why
Upvotes: 1
Views: 182
Reputation: 184455
You have an older version of Python on the machine that won't run it. Like, a really old version; this feature was added in Python 2.4, I believe.
Upvotes: 5