Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
ff04bff1
Commit
ff04bff1
authored
May 30, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetic cleanup of exception raising -- 4 lines down to 1
parent
fc5185e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
src/ZEO/smac.py
src/ZEO/smac.py
+2
-5
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+2
-5
No files found.
src/ZEO/smac.py
View file @
ff04bff1
...
...
@@ -85,7 +85,7 @@
"""Sized message async connections
"""
__version__
=
"$Revision: 1.
9
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
10
$"
[
11
:
-
2
]
import
asyncore
,
string
,
struct
,
zLOG
,
sys
,
Acquisition
from
zLOG
import
LOG
,
TRACE
,
ERROR
,
INFO
...
...
@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher):
append
=
self
.
__append
if
append
is
None
:
raise
Disconnected
,
(
"This action is temporarily unavailable."
"<p>"
)
raise
Disconnected
(
"This action is temporarily unavailable.<p>"
)
append
(
pack
(
">i"
,
len
(
message
))
+
message
)
...
...
src/ZEO/zrpc/smac.py
View file @
ff04bff1
...
...
@@ -85,7 +85,7 @@
"""Sized message async connections
"""
__version__
=
"$Revision: 1.
9
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
10
$"
[
11
:
-
2
]
import
asyncore
,
string
,
struct
,
zLOG
,
sys
,
Acquisition
from
zLOG
import
LOG
,
TRACE
,
ERROR
,
INFO
...
...
@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher):
append
=
self
.
__append
if
append
is
None
:
raise
Disconnected
,
(
"This action is temporarily unavailable."
"<p>"
)
raise
Disconnected
(
"This action is temporarily unavailable.<p>"
)
append
(
pack
(
">i"
,
len
(
message
))
+
message
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment