diff options
| author | dol-sen <brian.dolbec@gmail.com> | 2011-05-16 17:36:49 -0700 |
|---|---|---|
| committer | dol-sen <brian.dolbec@gmail.com> | 2011-05-16 17:36:49 -0700 |
| commit | c751af5aeaaeb90ea6117037827da0bf5457a4c6 (patch) | |
| tree | 9c7848bde7a54b2888df1905bac31db2265dad62 | |
| parent | b366d0b32de20ede0581678123d33a0c044175c9 (diff) | |
| download | gentoolkit-c751af5aeaaeb90ea6117037827da0bf5457a4c6.tar.gz | |
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 <brian.dolbec@gmail.com>
| -rw-r--r-- | pym/gentoolkit/equery/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |
