Avoiding syntax error for "as" operator in python
I am getting syntax error from python for 'as' statement. I don't know for sure, but I suspect my webserver is outdated python.
email@example.com [~/www/dmi-tcat/helpers]# python urlexpand.py File "urlexpand.py", line 70 except HTTPError as e: ^ SyntaxError: invalid syntax firstname.lastname@example.org [~/www/dmi-tcat/helpers]#
Can anyone confirm this and is there a way to write the same piece of code without an as statement? My host doesn't want to update python for a minute.
source to share