forked from MirrorHub/synapse
Cleanup extra quotes from IDEs (#6236)
This commit is contained in:
parent
e9a8c05bef
commit
92e88a71d3
4 changed files with 5 additions and 5 deletions
1
changelog.d/6236.misc
Normal file
1
changelog.d/6236.misc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Remove some extra quotation marks across the codebase.
|
|
@ -339,7 +339,7 @@ def main(stdscr):
|
||||||
root_logger = logging.getLogger()
|
root_logger = logging.getLogger()
|
||||||
|
|
||||||
formatter = logging.Formatter(
|
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"):
|
if not os.path.exists("logs"):
|
||||||
os.makedirs("logs")
|
os.makedirs("logs")
|
||||||
|
|
|
@ -36,7 +36,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
|
||||||
args = [room_id]
|
args = [room_id]
|
||||||
|
|
||||||
if limit:
|
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)
|
args.append(limit)
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ def make_graph(db_name, room_id, file_prefix, limit):
|
||||||
|
|
||||||
for event in events:
|
for event in events:
|
||||||
c = conn.execute(
|
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,),
|
(event.event_id,),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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
|
new_level_too_big = new_level is not None and new_level > user_level
|
||||||
if old_level_too_big or new_level_too_big:
|
if old_level_too_big or new_level_too_big:
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
403,
|
403, "You don't have permission to add ops level greater than your own"
|
||||||
"You don't have permission to add ops level greater " "than your own",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue