From d1a1173ddc315f21a3d468f43ac55aa43d31883d Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 10 Feb 2013 03:28:06 +0100 Subject: replaced tabs with 4 spaces in all python files PEP 8 (Style Guide for Python Code) suggests the use of 4 spaces: http://www.python.org/dev/peps/pep-0008/#indentation If you need to use tools like "git blame", you can use the -w option to ignore this commit entirely. Patches will continue to work if you substitute tabs with 4 spaces everywhere except in the Makefile. --- doc/print_colors.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/print_colors.py') diff --git a/doc/print_colors.py b/doc/print_colors.py index c3508fa6..ce040b33 100755 --- a/doc/print_colors.py +++ b/doc/print_colors.py @@ -9,15 +9,15 @@ from curses import * @wrapper def main(win): - def print_all_colors(attr): - for c in range(0, curses.COLORS): - init_pair(c, c, -1) - win.addstr(str(c) + ' ', color_pair(c) | attr) - use_default_colors() - win.addstr("available colors: %d\n\n" % curses.COLORS) - print_all_colors(0) - win.addstr("\n\n") - print_all_colors(A_BOLD) - win.refresh() - win.getch() + def print_all_colors(attr): + for c in range(0, curses.COLORS): + init_pair(c, c, -1) + win.addstr(str(c) + ' ', color_pair(c) | attr) + use_default_colors() + win.addstr("available colors: %d\n\n" % curses.COLORS) + print_all_colors(0) + win.addstr("\n\n") + print_all_colors(A_BOLD) + win.refresh() + win.getch() -- cgit 1.4.1-2-gfad0