Debian Codegraph @

debian/patches/0002-The-raise-syntax-no-longer-accepts-comma-separated-a.patch

raw symbols SCIP
1 From: Sergio de Almeida Cipriano Junior <[email protected]>
2 Date: Fri, 16 Apr 2021 23:36:09 -0300
3 Subject: The raise syntax no longer accepts comma-separated arguments
4 Forwarded: not-needed
5
6 ---
7 examples/fromtwisted.py | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10 diff --git a/examples/fromtwisted.py b/examples/fromtwisted.py
11 index 641720c..f80dcef 100644
12 --- a/examples/fromtwisted.py
13 +++ b/examples/fromtwisted.py
14 @@ -21,7 +21,7 @@ def application(environ, start_response):
15 try:
16 ip = gethostbyname('twistedmatrix.com')
17 return "%s has IP %s" % ('twistedmatrix.com', ip)
18 - except Exception, e:
19 + except Exception as e:
20 return 'Error doing lookup: %s' % (e,)
21
22 # A blocking API that will be called from the WSGI application, but actually