Skip to content

Commit 37c48c4

Browse files
authored
Merge pull request #2203 from AlexFrundin/fix-atom-script
chore: fix python3 example/color.py'
2 parents 8624c40 + 5067578 commit 37c48c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/color.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ def print_format_table():
22
"""
33
prints table of formatted text format options
44
"""
5-
for style in xrange(8):
6-
for fg in xrange(30, 38):
5+
for style in range(8):
6+
for fg in range(30, 38):
77
s1 = ''
8-
for bg in xrange(40, 48):
8+
for bg in range(40, 48):
99
format = ';'.join([str(style), str(fg), str(bg)])
1010
s1 += '\x1b[%sm %s \x1b[0m' % (format, format)
11-
print s1
12-
print '\n'
11+
print(s1)
12+
print('\n')
1313

1414
print("BEFORE")
1515

0 commit comments

Comments
 (0)