Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
cdf437a8
Commit
cdf437a8
authored
Sep 16, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I don't see why self.__closed should be None for false and 1 for
true. Use 0 for false instead.
parent
83d38548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+4
-4
No files found.
src/ZEO/zrpc/smac.py
View file @
cdf437a8
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Sized message async connections
$Id: smac.py,v 1.2
6 2002/09/07 23:50:51 jeremy
Exp $
$Id: smac.py,v 1.2
7 2002/09/16 16:57:11 gvanrossum
Exp $
"""
import
asyncore
,
struct
...
...
@@ -66,7 +66,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__input_len
=
0
self
.
__msg_size
=
4
self
.
__output
=
[]
self
.
__closed
=
None
self
.
__closed
=
0
self
.
__super_init
(
sock
,
map
)
# XXX avoid expensive getattr calls? Can't remember exactly what
...
...
@@ -181,7 +181,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
m
=
message
LOG
(
self
.
_debug
,
TRACE
,
'message_output %s'
%
`m`
)
if
self
.
__closed
is
not
None
:
if
self
.
__closed
:
raise
Disconnected
,
(
"This action is temporarily unavailable."
"<p>"
...
...
@@ -195,6 +195,6 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
self
.
__output
.
append
(
message
[
i
:
i
+
SEND_SIZE
])
def
close
(
self
):
if
self
.
__closed
is
None
:
if
not
self
.
__closed
:
self
.
__closed
=
1
self
.
__super_close
()
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