Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Replace old style error catching with 'as' keyword #3000

Merged
merged 1 commit into from Apr 4, 2018

Conversation

NotAFile
Copy link
Contributor

This is both easier to read and compatible with python3 (not that that
matters)

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

1 similar comment
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@richvdh
Copy link
Member

richvdh commented Mar 15, 2018

thanks, but please could you see https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst - particularly regarding (a) PRing against develop and (b) signing off your contribution. Sorry!

@NotAFile
Copy link
Contributor Author

NotAFile commented Mar 15, 2018

Oh, right I should probably have checked that (edit: oh, right, I used the CLI to pr). Are you fine with force-pushing pull request branches? I assume so.

This is both easier to read and compatible with python3 (not that that
matters)

Signed-off-by: Adrian Tschira <nota@notafile.com>
@NotAFile NotAFile changed the base branch from master to develop March 15, 2018 15:13
@NotAFile
Copy link
Contributor Author

I've fixed this according to your requirements. I though it would notify you automatically when I push, but it seems not, so here's a manual notification.

@richvdh
Copy link
Member

richvdh commented Apr 4, 2018

thanks!

[I wonder if there is a way to enforce this with flake8]

@richvdh richvdh merged commit 725a72e into matrix-org:develop Apr 4, 2018
@NotAFile
Copy link
Contributor Author

NotAFile commented Apr 4, 2018

One way would be running tests under py3 :)

@richvdh
Copy link
Member

richvdh commented Apr 5, 2018

One way would be running tests under py3 :)

Yup. As soon as you've got the unit tests passing under py3, I'd be up for running them under py3 on Travis, even if we're a way off getting sytest passing.

@NotAFile NotAFile deleted the change-except-style branch May 19, 2018 15:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants