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

Commit 4b965c8

Browse files
Remove redundant "coding: utf-8" lines (#9786)
Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
1 parent 7e460ec commit 4b965c8

File tree

651 files changed

+1
-651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

651 files changed

+1
-651
lines changed

.buildkite/scripts/create_postgres_db.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

changelog.d/9786.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Apply `pyupgrade` across the codebase.

contrib/cmdclient/http.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

contrib/experiments/test_messaging.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

scripts-dev/mypy_synapse_plugin.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

scripts-dev/sign_json

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python
22
#
3-
# -*- coding: utf-8 -*-
43
# Copyright 2020 The Matrix.org Foundation C.I.C.
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

scripts-dev/update_database

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/export_signing_key

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/generate_log_config

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
# -*- coding: utf-8 -*-
43
# Copyright 2020 The Matrix.org Foundation C.I.C.
54
#
65
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/generate_signing_key.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/move_remote_media_to_new_store.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2017 New Vector Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/register_new_matrix_user

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2015, 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

scripts/synapse_port_db

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2015, 2016 OpenMarket Ltd
43
# Copyright 2018 New Vector Ltd
54
# Copyright 2019 The Matrix.org Foundation C.I.C.

stubs/frozendict.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

stubs/txredisapi.pyi

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2018-9 New Vector Ltd
43
#

synapse/_scripts/register_new_matrix_user.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2018 New Vector
43
#

synapse/api/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/api/auth.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014 - 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/api/auth_blocking.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/api/constants.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2017 Vector Creations Ltd
43
# Copyright 2018-2019 New Vector Ltd

synapse/api/errors.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2018 New Vector Ltd
43
#

synapse/api/filtering.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2017 Vector Creations Ltd
43
# Copyright 2018-2019 New Vector Ltd

synapse/api/presence.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/api/room_versions.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2019 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/api/urls.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2018 New Vector Ltd
43
#

synapse/app/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/_base.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2017 New Vector Ltd
32
# Copyright 2019-2021 The Matrix.org Foundation C.I.C
43
#

synapse/app/admin_cmd.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2019 Matrix.org Foundation C.I.C.
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/appservice.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/client_reader.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/event_creator.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2018 New Vector Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/federation_reader.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/federation_sender.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/frontend_proxy.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/generic_worker.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
# Copyright 2020 The Matrix.org Foundation C.I.C.
54
#

synapse/app/homeserver.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2014-2016 OpenMarket Ltd
43
# Copyright 2019 New Vector Ltd
54
#

synapse/app/media_repository.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/pusher.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/synchrotron.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2016 OpenMarket Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/app/user_dir.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
# Copyright 2017 Vector Creations Ltd
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/appservice/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/appservice/api.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/appservice/scheduler.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/__main__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/_base.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2017-2018 New Vector Ltd
43
# Copyright 2019 The Matrix.org Foundation C.I.C.

synapse/config/_util.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/auth.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2020 The Matrix.org Foundation C.I.C.
43
#

synapse/config/cache.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2019 Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/cas.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/consent_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2018 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/database.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2020 The Matrix.org Foundation C.I.C.
43
#

synapse/config/emailconfig.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015-2016 OpenMarket Ltd
32
# Copyright 2017-2018 New Vector Ltd
43
# Copyright 2019 The Matrix.org Foundation C.I.C.

synapse/config/experimental.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2021 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/federation.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/groups.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2017 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/homeserver.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2018 New Vector Ltd
43
#

synapse/config/jwt_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015 Niklas Riekenbrauck
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/key.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#

synapse/config/logger.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/metrics.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#

synapse/config/oidc_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 Quentin Gliech
32
# Copyright 2020-2021 The Matrix.org Foundation C.I.C.
43
#

synapse/config/password_auth_providers.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2016 Openmarket
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/push.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
# Copyright 2017 New Vector Ltd
43
#

synapse/config/redis.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/registration.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2015, 2016 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/repository.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014, 2015 OpenMarket Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/room.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/room_directory.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2018 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/saml2_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2018 New Vector Ltd
32
# Copyright 2019 The Matrix.org Foundation C.I.C.
43
#

synapse/config/server.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2014-2016 OpenMarket Ltd
32
# Copyright 2017-2018 New Vector Ltd
43
# Copyright 2019 The Matrix.org Foundation C.I.C.

synapse/config/server_notices_config.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2018 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/spam_checker.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2017 New Vector Ltd
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

synapse/config/sso.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2020 The Matrix.org Foundation C.I.C.
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)