anonymousland-synapse/synapse
Adrian Tschira 4f40d058cc 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>
2018-04-06 23:06:24 +02:00
..
api Use simplejson throughout 2018-03-29 22:45:52 +01:00
app more verbosity in synctl 2018-04-06 09:28:36 +01:00
appservice Extract group_id from the dict for multiple use 2017-11-16 18:18:30 +00:00
config spell out not to massively increase bcrypt rounds 2018-03-19 09:27:36 +00:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events Remove context.push_actions 2018-02-15 15:47:06 +00:00
federation pep8 2018-04-06 15:43:27 +01:00
groups de-lint, quote consistency 2018-04-06 16:02:06 +01:00
handlers Implement group join API 2018-04-06 15:43:27 +01:00
http Add response size metrics 2018-04-06 13:20:11 +01:00
metrics Add a metric which increments when a request is received 2018-03-09 16:30:26 +00:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Update comments 2018-02-21 11:29:49 +00:00
replication Fix json encoding bug in replication 2018-04-03 15:09:48 +01:00
rest Replace old-style raise with six.reraise 2018-04-06 23:06:24 +02:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Don't use redundant inlineCallbacks 2018-04-06 15:43:27 +01:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Merge pull request #3068 from matrix-org/rav/fix_cache_invalidation 2018-04-05 17:21:44 +01:00
__init__.py Bum version and changelog 2018-03-26 16:36:53 +01:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py Remove last usage of ujson 2018-03-26 13:32:29 +01:00
server.py Split RoomMemberWorkerHandler to separate file 2018-03-14 11:41:45 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Measure time it takes to calculate state group ID 2018-03-28 11:03:52 +01:00
types.py Revert "improve mxid check performance" 2018-04-04 12:08:29 +01:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00