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
ba78bc4a
Commit
ba78bc4a
authored
Jul 04, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printlist(): Replaced the guts with a call to textwrap. Yay!
parent
8b7f131f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
30 deletions
+19
-30
Lib/test/regrtest.py
Lib/test/regrtest.py
+19
-30
No files found.
Lib/test/regrtest.py
View file @
ba78bc4a
...
...
@@ -464,21 +464,10 @@ def printlist(x, width=70, indent=4):
begin each line.
"""
line
=
' '
*
indent
for
one
in
map
(
str
,
x
):
w
=
len
(
line
)
+
len
(
one
)
if
line
[
-
1
:]
==
' '
:
pad
=
''
else
:
pad
=
' '
w
+=
1
if
w
>
width
:
print
line
line
=
' '
*
indent
+
one
else
:
line
+=
pad
+
one
if
len
(
line
)
>
indent
:
print
line
from
textwrap
import
fill
blanks
=
' '
*
indent
print
fill
(
' '
.
join
(
map
(
str
,
x
)),
width
,
initial_indent
=
blanks
,
subsequent_indent
=
blanks
)
class
_Set
:
def
__init__
(
self
,
seq
=
[]):
...
...
@@ -723,27 +712,27 @@ _expectations = {
"""
,
'atheos'
:
"""
test_al
test_cd
test_cl
test_curses
test_dl
test_al
test_cd
test_cl
test_curses
test_dl
test_email_codecs
test_gdbm
test_gl
test_imgfile
test_largefile
test_gdbm
test_gl
test_imgfile
test_largefile
test_linuxaudiodev
test_locale
test_locale
test_mhlib
test_mmap
test_mpz
test_nis
test_mmap
test_mpz
test_nis
test_poll
test_popen2
test_resource
test_socket_ssl
test_socketserver
test_socket_ssl
test_socketserver
test_sunaudiodev
test_unicode_file
test_winreg
...
...
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