1
0
Fork 0

Override LESS options completely.

This commit is contained in:
Amjith Ramanujam 2015-02-08 20:33:04 -08:00
parent be9622e1c3
commit 2576ce1bf5
2 changed files with 14 additions and 7 deletions

View File

@ -1,4 +1,12 @@
Current
0.15.3
======
* Override the LESS options completely instead of appending to it.
0.15.2
=======
* Revert back to using psycopg2 as the postgres adapter. psycopg2cffi fails for some tests in Python 3.
0.15.0
=======
Features:

View File

@ -267,13 +267,12 @@ class PGCli(object):
def adjust_less_opts(self):
less_opts = os.environ.get('LESS', '')
self.logger.debug('Original value for LESS env var: %r', less_opts)
if not less_opts:
os.environ['LESS'] = '-RXF'
os.environ['LESS'] = '-RXF'
if 'X' not in less_opts:
os.environ['LESS'] += 'X'
if 'F' not in less_opts:
os.environ['LESS'] += 'F'
#if 'X' not in less_opts:
#os.environ['LESS'] += 'X'
#if 'F' not in less_opts:
#os.environ['LESS'] += 'F'
return less_opts