From c751af5aeaaeb90ea6117037827da0bf5457a4c6 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Mon, 16 May 2011 17:36:49 -0700 Subject: [PATCH] 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 --- pym/gentoolkit/equery/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.26.2