forked-synapse/synapse/rest/media/v1
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
..
__init__.py copyrights 2016-01-07 04:26:29 +00:00
_base.py Fix up comments 2018-01-12 15:02:46 +00:00
download_resource.py Add missing class var 2018-01-12 13:16:27 +00:00
filepath.py Don't needlessly rename variable 2017-10-13 11:42:07 +01:00
identicon_resource.py copyrights 2016-01-07 04:26:29 +00:00
media_repository.py Merge pull request #2791 from matrix-org/erikj/media_storage_refactor 2018-02-05 11:28:52 +00:00
media_storage.py Replace old-style raise with six.reraise 2018-04-06 23:06:24 +02:00
preview_url_resource.py Merge branch 'master' of github.com:matrix-org/synapse into develop 2018-03-19 11:41:01 +00:00
storage_provider.py Fix storage provider bug introduced when renamed to store_local 2018-01-18 18:37:59 +00:00
thumbnail_resource.py Merge pull request #2791 from matrix-org/erikj/media_storage_refactor 2018-02-05 11:28:52 +00:00
thumbnailer.py Fix up 2017-10-13 11:33:49 +01:00
upload_resource.py Basic implementation of backup media store 2017-10-12 15:20:59 +01:00