Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fbc877b7
Commit
fbc877b7
authored
Jul 22, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value.
parents
dfead8dd
1392df96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/http/cookiejar.py
Lib/http/cookiejar.py
+2
-2
Lib/multiprocessing/dummy/__init__.py
Lib/multiprocessing/dummy/__init__.py
+1
-1
No files found.
Lib/http/cookiejar.py
View file @
fbc877b7
...
...
@@ -1722,12 +1722,12 @@ class CookieJar:
def __repr__(self):
r = []
for cookie in self: r.append(repr(cookie))
return "<%s[%s]>" % (self.__class__, ", ".join(r))
return "<%s[%s]>" % (self.__class__
.__name__
, ", ".join(r))
def __str__(self):
r = []
for cookie in self: r.append(str(cookie))
return "<%s[%s]>" % (self.__class__, ", ".join(r))
return "<%s[%s]>" % (self.__class__
.__name__
, ", ".join(r))
# derives from OSError for backwards-compatibility with Python 2.4.0
...
...
Lib/multiprocessing/dummy/__init__.py
View file @
fbc877b7
...
...
@@ -104,7 +104,7 @@ class Value(object):
self
.
_value
=
value
value
=
property
(
_get
,
_set
)
def
__repr__
(
self
):
return
'<%
r
(%r, %r)>'
%
(
type
(
self
).
__name__
,
self
.
_typecode
,
self
.
_value
)
return
'<%
s
(%r, %r)>'
%
(
type
(
self
).
__name__
,
self
.
_typecode
,
self
.
_value
)
def
Manager
():
return
sys
.
modules
[
__name__
]
...
...
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