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
6d9d6fb3
Commit
6d9d6fb3
authored
Jan 31, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid deprecation warnings.
parent
b6af3e0c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
Lib/ctypes/util.py
Lib/ctypes/util.py
+1
-1
Lib/encodings/uu_codec.py
Lib/encodings/uu_codec.py
+1
-1
Lib/test/test_descr.py
Lib/test/test_descr.py
+1
-1
Lib/test/test_exceptions.py
Lib/test/test_exceptions.py
+1
-1
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+1
-1
Lib/test/test_threading.py
Lib/test/test_threading.py
+3
-3
Lib/test/test_timeit.py
Lib/test/test_timeit.py
+1
-1
No files found.
Lib/ctypes/util.py
View file @
6d9d6fb3
...
@@ -177,7 +177,7 @@ elif os.name == "posix":
...
@@ -177,7 +177,7 @@ elif os.name == "posix":
res = re.findall(expr, data)
res = re.findall(expr, data)
if not res:
if not res:
return _get_soname(_findLib_gcc(name))
return _get_soname(_findLib_gcc(name))
res.sort(
cmp= lambda x,y: cmp(_num_version(x), _num_version(y))
)
res.sort(
key=_num_version
)
return res[-1]
return res[-1]
elif sys.platform == "sunos5":
elif sys.platform == "sunos5":
...
...
Lib/encodings/uu_codec.py
View file @
6d9d6fb3
...
@@ -84,7 +84,7 @@ def uu_decode(input,errors='strict'):
...
@@ -84,7 +84,7 @@ def uu_decode(input,errors='strict'):
data
=
a2b_uu
(
s
)
data
=
a2b_uu
(
s
)
except
binascii
.
Error
,
v
:
except
binascii
.
Error
,
v
:
# Workaround for broken uuencoders by /Fredrik Lundh
# Workaround for broken uuencoders by /Fredrik Lundh
nbytes
=
(((
ord
(
s
[
0
])
-
32
)
&
63
)
*
4
+
5
)
/
3
nbytes
=
(((
ord
(
s
[
0
])
-
32
)
&
63
)
*
4
+
5
)
/
/
3
data
=
a2b_uu
(
s
[:
nbytes
])
data
=
a2b_uu
(
s
[:
nbytes
])
#sys.stderr.write("Warning: %s\n" % str(v))
#sys.stderr.write("Warning: %s\n" % str(v))
write
(
data
)
write
(
data
)
...
...
Lib/test/test_descr.py
View file @
6d9d6fb3
...
@@ -2066,7 +2066,7 @@ order (MRO) for bases """
...
@@ -2066,7 +2066,7 @@ order (MRO) for bases """
"attr on a property"
%
attr
)
"attr on a property"
%
attr
)
class
D
(
object
):
class
D
(
object
):
__getitem__
=
property
(
lambda
s
:
1
/
0
)
__getitem__
=
property
(
lambda
s
:
1
.0
/
0.
0
)
d
=
D
()
d
=
D
()
try
:
try
:
...
...
Lib/test/test_exceptions.py
View file @
6d9d6fb3
...
@@ -92,7 +92,7 @@ class ExceptionTests(unittest.TestCase):
...
@@ -92,7 +92,7 @@ class ExceptionTests(unittest.TestCase):
self
.
raise_catch
(
TabError
,
"TabError"
)
self
.
raise_catch
(
TabError
,
"TabError"
)
# can only be tested under -tt, and is the only test for -tt
# can only be tested under -tt, and is the only test for -tt
#try: compile("try:\n\t1
/0\n \t1/
0\nfinally:\n pass\n", '<string>', 'exec')
#try: compile("try:\n\t1
.0/0.0\n \t1.0/0.
0\nfinally:\n pass\n", '<string>', 'exec')
#except TabError: pass
#except TabError: pass
#else: self.fail("TabError not raised")
#else: self.fail("TabError not raised")
...
...
Lib/test/test_ssl.py
View file @
6d9d6fb3
...
@@ -2954,7 +2954,7 @@ else:
...
@@ -2954,7 +2954,7 @@ else:
server_context
,
other_context
,
client_context
=
self
.
sni_contexts
()
server_context
,
other_context
,
client_context
=
self
.
sni_contexts
()
def
cb_raising
(
ssl_sock
,
server_name
,
initial_context
):
def
cb_raising
(
ssl_sock
,
server_name
,
initial_context
):
1
/
0
1
.0
/
0.
0
server_context
.
set_servername_callback
(
cb_raising
)
server_context
.
set_servername_callback
(
cb_raising
)
with
self
.
assertRaises
(
ssl
.
SSLError
)
as
cm
,
\
with
self
.
assertRaises
(
ssl
.
SSLError
)
as
cm
,
\
...
...
Lib/test/test_threading.py
View file @
6d9d6fb3
...
@@ -797,7 +797,7 @@ class ThreadingExceptionTests(BaseTestCase):
...
@@ -797,7 +797,7 @@ class ThreadingExceptionTests(BaseTestCase):
running = True
running = True
while running:
while running:
time.sleep(0.01)
time.sleep(0.01)
1
/
0
1
.0/0.
0
t = threading.Thread(target=run)
t = threading.Thread(target=run)
t.start()
t.start()
while not running:
while not running:
...
@@ -824,7 +824,7 @@ class ThreadingExceptionTests(BaseTestCase):
...
@@ -824,7 +824,7 @@ class ThreadingExceptionTests(BaseTestCase):
running = True
running = True
while running:
while running:
time.sleep(0.01)
time.sleep(0.01)
1
/
0
1
.0/0.
0
t = threading.Thread(target=run)
t = threading.Thread(target=run)
t.start()
t.start()
while not running:
while not running:
...
@@ -852,7 +852,7 @@ class ThreadingExceptionTests(BaseTestCase):
...
@@ -852,7 +852,7 @@ class ThreadingExceptionTests(BaseTestCase):
running = True
running = True
while running:
while running:
time.sleep(0.01)
time.sleep(0.01)
1
/
0
1
.0/0.
0
sys.stderr = None
sys.stderr = None
t = threading.Thread(target=run)
t = threading.Thread(target=run)
t.start()
t.start()
...
...
Lib/test/test_timeit.py
View file @
6d9d6fb3
...
@@ -197,7 +197,7 @@ class TestTimeit(unittest.TestCase):
...
@@ -197,7 +197,7 @@ class TestTimeit(unittest.TestCase):
def
test_print_exc
(
self
):
def
test_print_exc
(
self
):
s
=
StringIO
()
s
=
StringIO
()
t
=
timeit
.
Timer
(
"1
/
0"
)
t
=
timeit
.
Timer
(
"1
.0/0.
0"
)
try
:
try
:
t
.
timeit
()
t
.
timeit
()
except
:
except
:
...
...
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