Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
7acede1e
Commit
7acede1e
authored
10 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Fix pyflakes warnings
parent
15ab5f5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
synapse/handlers/_base.py
+1
-1
1 addition, 1 deletion
synapse/handlers/_base.py
synapse/handlers/federation.py
+1
-3
1 addition, 3 deletions
synapse/handlers/federation.py
synapse/handlers/typing.py
+2
-1
2 additions, 1 deletion
synapse/handlers/typing.py
synapse/server.py
+0
-5
0 additions, 5 deletions
synapse/server.py
with
4 additions
and
10 deletions
synapse/handlers/_base.py
+
1
−
1
View file @
7acede1e
...
...
@@ -35,7 +35,7 @@ class BaseRoomHandler(BaseHandler):
extra_users
=
[]):
snapshot
.
fill_out_prev_events
(
event
)
store_id
=
yield
self
.
store
.
persist_event
(
event
)
yield
self
.
store
.
persist_event
(
event
)
destinations
=
set
(
extra_destinations
)
# Send a PDU to all hosts who have joined the room.
...
...
This diff is collapsed.
Click to expand it.
synapse/handlers/federation.py
+
1
−
3
View file @
7acede1e
...
...
@@ -22,8 +22,6 @@ from synapse.api.constants import Membership
from
synapse.util.logutils
import
log_function
from
synapse.federation.pdu_codec
import
PduCodec
from
synapse.api.errors
import
AuthError
from
twisted.internet
import
defer
import
logging
...
...
@@ -146,7 +144,7 @@ class FederationHandler(BaseHandler):
else
:
with
(
yield
self
.
room_lock
.
lock
(
event
.
room_id
)):
store_id
=
yield
self
.
store
.
persist_event
(
event
,
backfilled
)
yield
self
.
store
.
persist_event
(
event
,
backfilled
)
room
=
yield
self
.
store
.
get_room
(
event
.
room_id
)
...
...
This diff is collapsed.
Click to expand it.
synapse/handlers/typing.py
+
2
−
1
View file @
7acede1e
...
...
@@ -17,11 +17,12 @@ from twisted.internet import defer
from
._base
import
BaseHandler
from
synapse.api.errors
import
SynapseError
,
AuthError
import
logging
from
collections
import
namedtuple
logger
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
synapse/server.py
+
0
−
5
View file @
7acede1e
...
...
@@ -126,11 +126,6 @@ class BaseHomeServer(object):
object.
"""
return
UserID
.
from_string
(
s
,
hs
=
self
)
def
parse_roomid
(
self
,
s
):
"""
Parse the string given by
'
s
'
as a Room ID and return a RoomID
object.
"""
return
RoomID
.
from_string
(
s
,
hs
=
self
)
def
parse_roomalias
(
self
,
s
):
"""
Parse the string given by
'
s
'
as a Room Alias and return a RoomAlias
object.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment