We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8624c40 + 5067578 commit 37c48c4Copy full SHA for 37c48c4
examples/color.py
@@ -2,14 +2,14 @@ def print_format_table():
2
"""
3
prints table of formatted text format options
4
5
- for style in xrange(8):
6
- for fg in xrange(30, 38):
+ for style in range(8):
+ for fg in range(30, 38):
7
s1 = ''
8
- for bg in xrange(40, 48):
+ for bg in range(40, 48):
9
format = ';'.join([str(style), str(fg), str(bg)])
10
s1 += '\x1b[%sm %s \x1b[0m' % (format, format)
11
- print s1
12
- print '\n'
+ print(s1)
+ print('\n')
13
14
print("BEFORE")
15
0 commit comments