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
d4ae71db
Commit
d4ae71db
authored
Jun 29, 2003
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
d909603c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
Lib/cgitb.py
Lib/cgitb.py
+1
-1
Lib/inspect.py
Lib/inspect.py
+1
-1
Lib/test/test_bool.py
Lib/test/test_bool.py
+3
-3
Lib/test/test_complex.py
Lib/test/test_complex.py
+1
-1
Lib/test/test_posixpath.py
Lib/test/test_posixpath.py
+2
-2
No files found.
Lib/cgitb.py
View file @
d4ae71db
...
...
@@ -9,7 +9,7 @@ at the top of your script. The optional arguments to enable() are:
display - if true, tracebacks are displayed in the web browser
logdir - if set, tracebacks are written to files in this directory
context - number of lines of source code to show for each stack frame
format
- 'text' or 'html' controls the output format
format
- 'text' or 'html' controls the output format
By default, tracebacks are displayed but not saved, the context is 5 lines
and the output format is 'html' (for backwards compatibility with the
...
...
Lib/inspect.py
View file @
d4ae71db
...
...
@@ -325,7 +325,7 @@ def getfile(object):
object
=
object
.
f_code
if
iscode
(
object
):
return
object
.
co_filename
raise
TypeError
(
'arg is not a module, class, method, '
raise
TypeError
(
'arg is not a module, class, method, '
'function, traceback, frame, or code object'
)
def
getmoduleinfo
(
path
):
...
...
Lib/test/test_bool.py
View file @
d4ae71db
...
...
@@ -329,17 +329,17 @@ class BoolTest(unittest.TestCase):
def
__nonzero__
(
self
):
return
self
check
(
Foo
())
class
Bar
(
object
):
def
__nonzero__
(
self
):
return
"Yes"
check
(
Bar
())
class
Baz
(
int
):
def
__nonzero__
(
self
):
return
self
check
(
Baz
())
def
test_main
():
test_support
.
run_unittest
(
BoolTest
)
...
...
Lib/test/test_complex.py
View file @
d4ae71db
...
...
@@ -208,7 +208,7 @@ class ComplexTest(unittest.TestCase):
self
.
assertRaises
(
ValueError
,
complex
,
unicode
(
"x"
))
class
EvilExc
(
Exception
):
pass
pass
class
evilcomplex
:
def
__complex__
(
self
):
...
...
Lib/test/test_posixpath.py
View file @
d4ae71db
...
...
@@ -237,7 +237,7 @@ class PosixPathTest(unittest.TestCase):
),
True
)
# If we don't have links, assume that os.stat doesn't return resonable
# If we don't have links, assume that os.stat doesn't return resonable
# inode information and thus, that samefile() doesn't work
if
hasattr
(
os
,
"symlink"
):
os
.
symlink
(
...
...
@@ -288,7 +288,7 @@ class PosixPathTest(unittest.TestCase):
),
True
)
# If we don't have links, assume that os.stat() doesn't return resonable
# If we don't have links, assume that os.stat() doesn't return resonable
# inode information and thus, that samefile() doesn't work
if
hasattr
(
os
,
"symlink"
):
if
hasattr
(
os
,
"symlink"
):
...
...
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