summary refs log tree commit diff
path: root/demo/demo.tls.dh
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-06 22:57:06 +0200
committerAdrian Tschira <nota@notafile.com>2018-04-06 23:06:24 +0200
commit4f40d058ccc030107bc33716401f8c0f4a7230d9 (patch)
tree40d137248bd94a18b38b38ce7576819368d6a2cb /demo/demo.tls.dh
parentMerge pull request #3046 from matrix-org/dbkr/join_group (diff)
downloadsynapse-4f40d058ccc030107bc33716401f8c0f4a7230d9.tar.xz
Replace old-style raise with six.reraise
The old style raise is invalid syntax in python3. As noted in the docs,
this adds one more frame in the traceback, but I think this is
acceptable:

    <ipython-input-7-bcc5cba3de3f> in <module>()
         16     except:
         17         pass
    ---> 18     six.reraise(*x)

    /usr/lib/python3.6/site-packages/six.py in reraise(tp, value, tb)
        691             if value.__traceback__ is not tb:
        692                 raise value.with_traceback(tb)
    --> 693             raise value
        694         finally:
        695             value = None

    <ipython-input-7-bcc5cba3de3f> in <module>()
          9
         10 try:
    ---> 11     x()
         12 except:
         13     x = sys.exc_info()

Also note that this uses six, which is not formally a dependency yet,
but is included indirectly since most packages depend on it.

Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'demo/demo.tls.dh')
0 files changed, 0 insertions, 0 deletions