nghung270192 / colorama

Automatically exported from code.google.com/p/colorama
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Bad example in README #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The code in the main example is not valid Python:

from colorama import Fore, Back, Style
print(Fore.RED + 'some red text')
print(Back.GREEN + and with a green background')
print(Style.DIM + 'and in dim text')
print(+ Fore.RESET + Back.RESET + Style.RESET_ALL)
print('back to normal now')

Needs an opening quote after GREEN, and remove the plus in the penultimate 
print statement.

Original issue reported on code.google.com by jesse@emptysquare.net on 14 Jun 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Many thanks for pointing that out. Fixed now. I haven't bumped the version 
number though, hope that's ok.

Original comment by tart...@gmail.com on 15 Jun 2013 at 11:16

GoogleCodeExporter commented 9 years ago
Fine by me, it's just a nit.

Original comment by jesse@emptysquare.net on 15 Jun 2013 at 11:22