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
95c00fa4
Commit
95c00fa4
authored
Mar 16, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
a1d7c632
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
14 deletions
+9
-14
Lib/dircache.py
Lib/dircache.py
+3
-3
Lib/inspect.py
Lib/inspect.py
+0
-2
Lib/pydoc.py
Lib/pydoc.py
+1
-3
Lib/test/test_scope.py
Lib/test/test_scope.py
+2
-3
Lib/urllib2.py
Lib/urllib2.py
+2
-2
Lib/whichdb.py
Lib/whichdb.py
+1
-1
No files found.
Lib/dircache.py
View file @
95c00fa4
...
@@ -11,9 +11,9 @@ __all__ = ["listdir", "opendir", "annotate", "reset"]
...
@@ -11,9 +11,9 @@ __all__ = ["listdir", "opendir", "annotate", "reset"]
cache
=
{}
cache
=
{}
def
reset
():
def
reset
():
"""Reset the cache completely."""
"""Reset the cache completely."""
global
cache
global
cache
cache
=
{}
cache
=
{}
def
listdir
(
path
):
def
listdir
(
path
):
"""List directory contents, using cache."""
"""List directory contents, using cache."""
...
...
Lib/inspect.py
View file @
95c00fa4
...
@@ -643,5 +643,3 @@ def stack(context=1):
...
@@ -643,5 +643,3 @@ def stack(context=1):
def trace(context=1):
def trace(context=1):
"""
Return
a
list
of
records
for
the
stack
below
the
current
exception
.
"""
"""
Return
a
list
of
records
for
the
stack
below
the
current
exception
.
"""
return getinnerframes(sys.exc_traceback, context)
return getinnerframes(sys.exc_traceback, context)
Lib/pydoc.py
View file @
95c00fa4
...
@@ -1032,7 +1032,7 @@ class ModuleScanner(Scanner):
...
@@ -1032,7 +1032,7 @@ class ModuleScanner(Scanner):
children
=
[]
children
=
[]
for
file
in
os
.
listdir
(
dir
):
for
file
in
os
.
listdir
(
dir
):
path
=
os
.
path
.
join
(
dir
,
file
)
path
=
os
.
path
.
join
(
dir
,
file
)
if
ispackage
(
path
):
if
ispackage
(
path
):
children
.
append
((
path
,
package
+
(
package
and
'.'
)
+
file
))
children
.
append
((
path
,
package
+
(
package
and
'.'
)
+
file
))
else
:
else
:
children
.
append
((
path
,
package
))
children
.
append
((
path
,
package
))
...
@@ -1416,5 +1416,3 @@ def cli():
...
@@ -1416,5 +1416,3 @@ def cli():
"""
%
(
cmd
,
os
.
sep
,
cmd
,
cmd
,
cmd
,
cmd
,
os
.
sep
)
"""
%
(
cmd
,
os
.
sep
,
cmd
,
cmd
,
cmd
,
cmd
,
os
.
sep
)
if
__name__
==
'__main__'
:
cli
()
if
__name__
==
'__main__'
:
cli
()
Lib/test/test_scope.py
View file @
95c00fa4
...
@@ -388,7 +388,7 @@ print "16. check leaks"
...
@@ -388,7 +388,7 @@ print "16. check leaks"
class
Foo
:
class
Foo
:
count
=
0
count
=
0
def
__init__
(
self
):
def
__init__
(
self
):
Foo
.
count
+=
1
Foo
.
count
+=
1
...
@@ -400,9 +400,8 @@ def f1():
...
@@ -400,9 +400,8 @@ def f1():
def
f2
():
def
f2
():
return
x
return
x
f2
()
f2
()
for
i
in
range
(
100
):
for
i
in
range
(
100
):
f1
()
f1
()
verify
(
Foo
.
count
==
0
)
verify
(
Foo
.
count
==
0
)
Lib/urllib2.py
View file @
95c00fa4
...
@@ -640,7 +640,7 @@ class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
...
@@ -640,7 +640,7 @@ class HTTPBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
def
http_error_401
(
self
,
req
,
fp
,
code
,
msg
,
headers
):
def
http_error_401
(
self
,
req
,
fp
,
code
,
msg
,
headers
):
host
=
urlparse
.
urlparse
(
req
.
get_full_url
())[
1
]
host
=
urlparse
.
urlparse
(
req
.
get_full_url
())[
1
]
return
self
.
http_error_auth_reqed
(
'www-authenticate'
,
return
self
.
http_error_auth_reqed
(
'www-authenticate'
,
host
,
req
,
headers
)
host
,
req
,
headers
)
...
@@ -650,7 +650,7 @@ class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
...
@@ -650,7 +650,7 @@ class ProxyBasicAuthHandler(AbstractBasicAuthHandler, BaseHandler):
def
http_error_407
(
self
,
req
,
fp
,
code
,
msg
,
headers
):
def
http_error_407
(
self
,
req
,
fp
,
code
,
msg
,
headers
):
host
=
req
.
get_host
()
host
=
req
.
get_host
()
return
self
.
http_error_auth_reqed
(
'proxy-authenticate'
,
return
self
.
http_error_auth_reqed
(
'proxy-authenticate'
,
host
,
req
,
headers
)
host
,
req
,
headers
)
...
...
Lib/whichdb.py
View file @
95c00fa4
...
@@ -6,7 +6,7 @@ if os.sep==".":
...
@@ -6,7 +6,7 @@ if os.sep==".":
endsep
=
"/"
endsep
=
"/"
else
:
else
:
endsep
=
"."
endsep
=
"."
def
whichdb
(
filename
):
def
whichdb
(
filename
):
"""Guess which db package to use to open a db file.
"""Guess which db package to use to open a db file.
...
...
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