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
83e7ccc9
Commit
83e7ccc9
authored
Sep 04, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
bc1c7a08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
8 deletions
+7
-8
Lib/rfc822.py
Lib/rfc822.py
+1
-1
Lib/test/test_long.py
Lib/test/test_long.py
+1
-1
Lib/test/test_pow.py
Lib/test/test_pow.py
+0
-1
Lib/test/test_urllib2.py
Lib/test/test_urllib2.py
+1
-1
Tools/scripts/fixdiv.py
Tools/scripts/fixdiv.py
+4
-4
No files found.
Lib/rfc822.py
View file @
83e7ccc9
...
@@ -967,7 +967,7 @@ def formatdate(timeval=None):
...
@@ -967,7 +967,7 @@ def formatdate(timeval=None):
timeval
[
2
],
timeval
[
2
],
[
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
[
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
][
timeval
[
1
]
-
1
],
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
][
timeval
[
1
]
-
1
],
timeval
[
0
],
timeval
[
3
],
timeval
[
4
],
timeval
[
5
])
timeval
[
0
],
timeval
[
3
],
timeval
[
4
],
timeval
[
5
])
# When used as script, run a small test program.
# When used as script, run a small test program.
...
...
Lib/test/test_long.py
View file @
83e7ccc9
...
@@ -357,7 +357,7 @@ def test_float_overflow():
...
@@ -357,7 +357,7 @@ def test_float_overflow():
"math.sqrt(huge)"
,
"math.sqrt(mhuge)"
,
# should do better
"math.sqrt(huge)"
,
"math.sqrt(mhuge)"
,
# should do better
"math.log10(huge)"
,
"math.log10(mhuge)"
,
# should do better
"math.log10(huge)"
,
"math.log10(mhuge)"
,
# should do better
"math.floor(huge)"
,
"math.floor(mhuge)"
]:
"math.floor(huge)"
,
"math.floor(mhuge)"
]:
try
:
try
:
eval
(
test
,
namespace
)
eval
(
test
,
namespace
)
except
OverflowError
:
except
OverflowError
:
...
...
Lib/test/test_pow.py
View file @
83e7ccc9
...
@@ -118,4 +118,3 @@ for i in range(-10, 11):
...
@@ -118,4 +118,3 @@ for i in range(-10, 11):
o
=
pow
(
long
(
i
),
j
)
%
k
o
=
pow
(
long
(
i
),
j
)
%
k
n
=
pow
(
long
(
i
),
j
,
k
)
n
=
pow
(
long
(
i
),
j
,
k
)
if
o
!=
n
:
print
'Integer mismatch:'
,
i
,
j
,
k
if
o
!=
n
:
print
'Integer mismatch:'
,
i
,
j
,
k
Lib/test/test_urllib2.py
View file @
83e7ccc9
...
@@ -18,7 +18,7 @@ if fname[1:2] == ":":
...
@@ -18,7 +18,7 @@ if fname[1:2] == ":":
# And more hacking to get it to work on MacOS. This assumes
# And more hacking to get it to work on MacOS. This assumes
# urllib.pathname2url works, unfortunately...
# urllib.pathname2url works, unfortunately...
if
os
.
name
==
'mac'
:
if
os
.
name
==
'mac'
:
fname
=
'/'
+
fname
.
replace
(
':'
,
'/'
)
fname
=
'/'
+
fname
.
replace
(
':'
,
'/'
)
file_url
=
"file://%s"
%
fname
file_url
=
"file://%s"
%
fname
f
=
urllib2
.
urlopen
(
file_url
)
f
=
urllib2
.
urlopen
(
file_url
)
...
...
Tools/scripts/fixdiv.py
View file @
83e7ccc9
...
@@ -230,10 +230,10 @@ def process(file, list):
...
@@ -230,10 +230,10 @@ def process(file, list):
print
"*** Bad warning for line %d:"
%
row
,
bad
print
"*** Bad warning for line %d:"
%
row
,
bad
print
"*"
,
line
print
"*"
,
line
elif
intlong
and
not
floatcomplex
:
elif
intlong
and
not
floatcomplex
:
print
"%dc%d"
%
(
row
,
row
)
print
"%dc%d"
%
(
row
,
row
)
print
"<"
,
line
print
"<"
,
line
print
"---"
print
"---"
print
">"
,
line
[:
col
]
+
"/"
+
line
[
col
:]
print
">"
,
line
[:
col
]
+
"/"
+
line
[
col
:]
elif
floatcomplex
and
not
intlong
:
elif
floatcomplex
and
not
intlong
:
print
"True division / operator at line %d:"
%
row
print
"True division / operator at line %d:"
%
row
print
"="
,
line
print
"="
,
line
...
...
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