You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyp --manual --turn_off_color
is colored while it shouldn't
Problem is that reassignment of class Colors to NoColors is done after class
Docs is defined.
One quite non intrusive solution is to modify Docs.manual as such so that
manual text is evaluated only when called:
$ diff -u /usr/bin/pyp pyp
--- /usr/bin/pyp 2012-04-04 22:02:16.000000000 +0200
+++ pyp 2012-04-19 00:23:44.183598728 +0200
@@ -1390,7 +1390,7 @@
'''
if options.manual:
- print Docs.manual
+ print Docs().manual()
sys.exit()
if options.unmodified_config:
@@ -1476,7 +1476,8 @@
class Docs():
- manual = '''
+ def manual(self):
+ return '''
===================================================================================
PYED PIPER MANUAL
Original issue reported on code.google.com by yob...@gmail.com on 18 Apr 2012 at 10:27
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
yob...@gmail.com
on 18 Apr 2012 at 10:27The text was updated successfully, but these errors were encountered: