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

Cleanup extra quotes from IDEs #6236

Merged
merged 2 commits into from
Oct 23, 2019
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/6236.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove some extra quotation marks across the codebase.
2 changes: 1 addition & 1 deletion contrib/experiments/test_messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def main(stdscr):
root_logger = logging.getLogger()

formatter = logging.Formatter(
"%(asctime)s - %(name)s - %(lineno)d - " "%(levelname)s - %(message)s"
"%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s"
)
if not os.path.exists("logs"):
os.makedirs("logs")
Expand Down
4 changes: 2 additions & 2 deletions contrib/graph/graph2.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
args = [room_id]

if limit:
sql += " ORDER BY topological_ordering DESC, stream_ordering DESC " "LIMIT ?"
sql += " ORDER BY topological_ordering DESC, stream_ordering DESC LIMIT ?"

args.append(limit)

Expand All @@ -53,7 +53,7 @@ def make_graph(db_name, room_id, file_prefix, limit):

for event in events:
c = conn.execute(
"SELECT state_group FROM event_to_state_groups " "WHERE event_id = ?",
"SELECT state_group FROM event_to_state_groups WHERE event_id = ?",
(event.event_id,),
)

Expand Down
3 changes: 1 addition & 2 deletions synapse/event_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ def _check_power_levels(event, auth_events):
new_level_too_big = new_level is not None and new_level > user_level
if old_level_too_big or new_level_too_big:
raise AuthError(
403,
"You don't have permission to add ops level greater " "than your own",
403, "You don't have permission to add ops level greater than your own"
)


Expand Down