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

Tell Black to format code for Python 3.5 #8664

Merged
merged 1 commit into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/8664.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tell Black to format code for Python 3.5.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
showcontent = true

[tool.black]
target-version = ['py34']
target-version = ['py35']
exclude = '''

(
Expand Down
2 changes: 1 addition & 1 deletion synapse/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async def request(
agent=self.agent,
data=body_producer,
headers=headers,
**self._extra_treq_args
**self._extra_treq_args,
) # type: defer.Deferred

# we use our own timeout mechanism rather than treq's as a workaround
Expand Down
4 changes: 2 additions & 2 deletions synapse/storage/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def make_pool(
cp_openfun=lambda conn: engine.on_new_connection(
LoggingDatabaseConnection(conn, engine, "on_new_connection")
),
**db_config.config.get("args", {})
**db_config.config.get("args", {}),
)


Expand Down Expand Up @@ -632,7 +632,7 @@ async def runInteraction(
func,
*args,
db_autocommit=db_autocommit,
**kwargs
**kwargs,
)

for after_callback, after_args, after_kwargs in after_callbacks:
Expand Down
2 changes: 1 addition & 1 deletion synapse/util/retryutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def get_retry_limiter(destination, clock, store, ignore_backoff=False, **k
failure_ts,
retry_interval,
backoff_on_failure=backoff_on_failure,
**kwargs
**kwargs,
)


Expand Down
2 changes: 1 addition & 1 deletion tests/replication/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def make_worker_hs(
homeserver_to_use=GenericWorkerServer,
config=config,
reactor=self.reactor,
**kwargs
**kwargs,
)

# If the instance is in the `instance_map` config then workers may try
Expand Down
2 changes: 1 addition & 1 deletion tests/replication/tcp/streams/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def _inject_test_event(
sender=sender,
type="test_event",
content={"body": body},
**kwargs
**kwargs,
)
)

Expand Down
4 changes: 2 additions & 2 deletions tests/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def runWithConnection(func, *args, **kwargs):
pool._runWithConnection,
func,
*args,
**kwargs
**kwargs,
)

def runInteraction(interaction, *args, **kwargs):
Expand All @@ -390,7 +390,7 @@ def runInteraction(interaction, *args, **kwargs):
pool._runInteraction,
interaction,
*args,
**kwargs
**kwargs,
)

pool.runWithConnection = runWithConnection
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/test_client_ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def _runtest(self, headers, expected_ip, make_request_args):
"GET",
"/_matrix/client/r0/admin/users/" + self.user_id,
access_token=access_token,
**make_request_args
**make_request_args,
)
request.requestHeaders.addRawHeader(b"User-Agent", b"Mozzila pizza")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils/event_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def inject_member_event(
sender=sender,
state_key=target,
content=content,
**kwargs
**kwargs,
)


Expand Down