1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-15 13:49:28 +03:00

source4/scripting python: convert 'except X, e' to 'except X as e'

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2018-02-14 10:33:06 +13:00
committed by Andrew Bartlett
parent 20e38fbd45
commit f43cb7c38d
10 changed files with 20 additions and 20 deletions

View File

@ -113,7 +113,7 @@ class WerrorHtmlParser(object):
for line in fp:
html_str += line.strip()
fp.close()
except IOError, e:
except IOError as e:
print "error loading url: " + e.strerror
pass