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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
21b66afd
Commit
21b66afd
authored
Aug 30, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
47c837d7
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
24 deletions
+22
-24
src/ZEO/smac.py
src/ZEO/smac.py
+1
-2
src/ZEO/zrpc/__init__.py
src/ZEO/zrpc/__init__.py
+2
-2
src/ZEO/zrpc/client.py
src/ZEO/zrpc/client.py
+4
-4
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+3
-3
src/ZEO/zrpc/error.py
src/ZEO/zrpc/error.py
+2
-2
src/ZEO/zrpc/log.py
src/ZEO/zrpc/log.py
+2
-2
src/ZEO/zrpc/marshal.py
src/ZEO/zrpc/marshal.py
+3
-3
src/ZEO/zrpc/server.py
src/ZEO/zrpc/server.py
+2
-2
src/ZEO/zrpc/smac.py
src/ZEO/zrpc/smac.py
+1
-2
src/ZEO/zrpc/trigger.py
src/ZEO/zrpc/trigger.py
+2
-2
No files found.
src/ZEO/smac.py
View file @
21b66afd
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Sized message async connections
"""Sized message async connections
$Id: smac.py,v 1.2
2 2002/08/29 22:39:51 jeremy
Exp $
$Id: smac.py,v 1.2
3 2002/08/30 21:42:30 gvanrossum
Exp $
"""
"""
import
asyncore
,
struct
import
asyncore
,
struct
...
@@ -194,7 +194,6 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
...
@@ -194,7 +194,6 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
else
:
else
:
for
i
in
range
(
0
,
len
(
message
),
SEND_SIZE
):
for
i
in
range
(
0
,
len
(
message
),
SEND_SIZE
):
self
.
__output
.
append
(
message
[
i
:
i
+
SEND_SIZE
])
self
.
__output
.
append
(
message
[
i
:
i
+
SEND_SIZE
])
def
close
(
self
):
def
close
(
self
):
if
self
.
__closed
is
None
:
if
self
.
__closed
is
None
:
...
...
src/ZEO/zrpc/__init__.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
# zrpc is a package with the following modules
# zrpc is a package with the following modules
# error -- exceptions raised by zrpc
# error -- exceptions raised by zrpc
...
...
src/ZEO/zrpc/client.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
errno
import
errno
import
select
import
select
...
@@ -321,7 +321,7 @@ class ConnectThread(threading.Thread):
...
@@ -321,7 +321,7 @@ class ConnectThread(threading.Thread):
elif
e
in
_CONNECT_OK
:
elif
e
in
_CONNECT_OK
:
# special cases to deal with winsock oddities
# special cases to deal with winsock oddities
if
sys
.
platform
.
startswith
(
"win"
)
and
e
==
0
:
if
sys
.
platform
.
startswith
(
"win"
)
and
e
==
0
:
# It appears that winsock isn't behaving as
# It appears that winsock isn't behaving as
# expected on Win2k. It's possible for connect()
# expected on Win2k. It's possible for connect()
# to return 0, but the connection to have failed.
# to return 0, but the connection to have failed.
...
@@ -330,7 +330,7 @@ class ConnectThread(threading.Thread):
...
@@ -330,7 +330,7 @@ class ConnectThread(threading.Thread):
# connect_ex() return 0. OTOH, it looks like
# connect_ex() return 0. OTOH, it looks like
# select() is a more reliable indicator on
# select() is a more reliable indicator on
# Windows.
# Windows.
r
,
w
,
x
=
select
.
select
([
s
],
[
s
],
[
s
],
0.1
)
r
,
w
,
x
=
select
.
select
([
s
],
[
s
],
[
s
],
0.1
)
if
not
(
r
or
w
or
x
):
if
not
(
r
or
w
or
x
):
return
return
...
...
src/ZEO/zrpc/connection.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
asyncore
import
asyncore
import
select
import
select
...
@@ -172,7 +172,7 @@ class Connection(smac.SizedMessageAsyncConnection):
...
@@ -172,7 +172,7 @@ class Connection(smac.SizedMessageAsyncConnection):
if
message
==
self
.
protocol_version
:
if
message
==
self
.
protocol_version
:
self
.
message_input
=
self
.
_message_input
self
.
message_input
=
self
.
_message_input
# otherwise do something else...
# otherwise do something else...
def
message_input
(
self
,
message
):
def
message_input
(
self
,
message
):
"""Decoding an incoming message and dispatch it"""
"""Decoding an incoming message and dispatch it"""
# XXX Not sure what to do with errors that reach this level.
# XXX Not sure what to do with errors that reach this level.
...
...
src/ZEO/zrpc/error.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
from
ZODB
import
POSException
from
ZODB
import
POSException
from
ZEO.Exceptions
import
Disconnected
from
ZEO.Exceptions
import
Disconnected
...
...
src/ZEO/zrpc/log.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
os
import
os
import
types
import
types
...
...
src/ZEO/zrpc/marshal.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
cPickle
import
cPickle
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
...
@@ -49,7 +49,7 @@ class Marshaller:
...
@@ -49,7 +49,7 @@ class Marshaller:
except
(
self
.
errors
,
IndexError
),
err_msg
:
except
(
self
.
errors
,
IndexError
),
err_msg
:
log
(
"can't decode %s"
%
repr
(
msg
),
level
=
zLOG
.
ERROR
)
log
(
"can't decode %s"
%
repr
(
msg
),
level
=
zLOG
.
ERROR
)
raise
DecodingError
(
msg
)
raise
DecodingError
(
msg
)
_globals
=
globals
()
_globals
=
globals
()
_silly
=
(
'__doc__'
,)
_silly
=
(
'__doc__'
,)
...
...
src/ZEO/zrpc/server.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
asyncore
import
asyncore
import
socket
import
socket
...
...
src/ZEO/zrpc/smac.py
View file @
21b66afd
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Sized message async connections
"""Sized message async connections
$Id: smac.py,v 1.2
2 2002/08/29 22:39:51 jeremy
Exp $
$Id: smac.py,v 1.2
3 2002/08/30 21:42:30 gvanrossum
Exp $
"""
"""
import
asyncore
,
struct
import
asyncore
,
struct
...
@@ -194,7 +194,6 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
...
@@ -194,7 +194,6 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
else
:
else
:
for
i
in
range
(
0
,
len
(
message
),
SEND_SIZE
):
for
i
in
range
(
0
,
len
(
message
),
SEND_SIZE
):
self
.
__output
.
append
(
message
[
i
:
i
+
SEND_SIZE
])
self
.
__output
.
append
(
message
[
i
:
i
+
SEND_SIZE
])
def
close
(
self
):
def
close
(
self
):
if
self
.
__closed
is
None
:
if
self
.
__closed
is
None
:
...
...
src/ZEO/zrpc/trigger.py
View file @
21b66afd
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
#
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
# All Rights Reserved.
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
import
asyncore
import
asyncore
...
...
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