Mercurial > ~astiob > upreckon > hgweb
diff upreckon/compat.py @ 174:e0b2fbd7ebe0
Improved built-in output validator; added conf. var. binary
The built-in output validator now reads blocks rather than lines, which
should make it faster. There is also a new configuration variable called
binary, which defaults to False and specifies whether the built-in output
validator should not try to translate line breaks. Finally, when binary
is false, the built-in output validator now translates line breaks even
if it the reference output is in a tape archive.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sat, 18 Jun 2011 02:55:17 +0100 |
parents | d5b6708c1955 |
children |
line wrap: on
line diff
--- a/upreckon/compat.py Thu Jun 16 01:24:10 2011 +0100 +++ b/upreckon/compat.py Sat Jun 18 02:55:17 2011 +0100 @@ -1,6 +1,6 @@ # Copyright (c) 2010-2011 Chortos-2 <chortos@inbox.lv> -# A compatibility layer for Python 2.5+. This is what lets test.py +# A compatibility layer for Python 2.5+. This is what lets Upreckon # run on all versions of Python starting with 2.5, including Python 3. # A few notes regarding some compatibility-driven peculiarities