From: dol-sen Date: Tue, 17 May 2011 00:36:49 +0000 (-0700) Subject: found a better spot to set piping wrap width so as to disable for all piping regardle... X-Git-Tag: gentoolkit-0.3.0.3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c751af5aeaaeb90ea6117037827da0bf5457a4c6;p=gentoolkit.git found a better spot to set piping wrap width so as to disable for all piping regardless of the --no-pipe option which would turn off setting 'quiet' on. Signed-off-by: dol-sen --- diff --git a/pym/gentoolkit/equery/__init__.py b/pym/gentoolkit/equery/__init__.py index 0d24222..b362bca 100644 --- a/pym/gentoolkit/equery/__init__.py +++ b/pym/gentoolkit/equery/__init__.py @@ -221,6 +221,9 @@ def initialize_configuration(): if CONFIG['piping']: CONFIG['verbose'] = False + # set extra wide, should disable wrapping unless + # there is some extra long text + CONFIG['termWidth'] = 600 CONFIG['debug'] = bool(os.getenv('DEBUG', False)) @@ -275,7 +278,6 @@ def parse_global_options(global_opts, args): pp.output.nocolor() elif opt in ('-N', '--no-pipe'): CONFIG['piping'] = False - CONFIG['termWidth'] = 400 elif opt in ('-V', '--version'): print_version() sys.exit(0)