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
nexedi
ZODB
Commits
9cdf93fc
Commit
9cdf93fc
authored
Sep 29, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use short_repr() instead of repr() a few more places.
parent
c297ff32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/ZEO/zrpc/connection.py
src/ZEO/zrpc/connection.py
+4
-4
No files found.
src/ZEO/zrpc/connection.py
View file @
9cdf93fc
...
@@ -182,7 +182,7 @@ class Connection(smac.SizedMessageAsyncConnection):
...
@@ -182,7 +182,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
else
:
else
:
log
(
"recv_handshake: bad handshake %s"
%
repr
(
message
),
log
(
"recv_handshake: bad handshake %s"
%
short_
repr
(
message
),
level
=
zLOG
.
ERROR
)
level
=
zLOG
.
ERROR
)
# otherwise do something else...
# otherwise do something else...
...
@@ -236,7 +236,7 @@ class Connection(smac.SizedMessageAsyncConnection):
...
@@ -236,7 +236,7 @@ class Connection(smac.SizedMessageAsyncConnection):
if
flags
&
ASYNC
:
if
flags
&
ASYNC
:
if
ret
is
not
None
:
if
ret
is
not
None
:
raise
ZRPCError
(
"async method %s returned value %s"
%
raise
ZRPCError
(
"async method %s returned value %s"
%
(
name
,
repr
(
ret
)))
(
name
,
short_
repr
(
ret
)))
else
:
else
:
if
__debug__
:
if
__debug__
:
log
(
"%s returns %s"
%
(
name
,
short_repr
(
ret
)),
zLOG
.
DEBUG
)
log
(
"%s returns %s"
%
(
name
,
short_repr
(
ret
)),
zLOG
.
DEBUG
)
...
@@ -265,7 +265,7 @@ class Connection(smac.SizedMessageAsyncConnection):
...
@@ -265,7 +265,7 @@ class Connection(smac.SizedMessageAsyncConnection):
msg
=
self
.
marshal
.
encode
(
msgid
,
0
,
REPLY
,
ret
)
msg
=
self
.
marshal
.
encode
(
msgid
,
0
,
REPLY
,
ret
)
except
self
.
marshal
.
errors
:
except
self
.
marshal
.
errors
:
try
:
try
:
r
=
repr
(
ret
)
r
=
short_
repr
(
ret
)
except
:
except
:
r
=
"<unreprable>"
r
=
"<unreprable>"
err
=
ZRPCError
(
"Couldn't pickle return %.100s"
%
r
)
err
=
ZRPCError
(
"Couldn't pickle return %.100s"
%
r
)
...
@@ -284,7 +284,7 @@ class Connection(smac.SizedMessageAsyncConnection):
...
@@ -284,7 +284,7 @@ class Connection(smac.SizedMessageAsyncConnection):
msg
=
self
.
marshal
.
encode
(
msgid
,
0
,
REPLY
,
(
err_type
,
err_value
))
msg
=
self
.
marshal
.
encode
(
msgid
,
0
,
REPLY
,
(
err_type
,
err_value
))
except
self
.
marshal
.
errors
:
except
self
.
marshal
.
errors
:
try
:
try
:
r
=
repr
(
err_value
)
r
=
short_
repr
(
err_value
)
except
:
except
:
r
=
"<unreprable>"
r
=
"<unreprable>"
err
=
ZRPCError
(
"Couldn't pickle error %.100s"
%
r
)
err
=
ZRPCError
(
"Couldn't pickle error %.100s"
%
r
)
...
...
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