1 new commit in py:
https://bitbucket.org/hpk42/py/changeset/5aa472a410ed/ changeset: 5aa472a410ed user: hpk42 date: 2012-02-06 13:38:02 summary: fix py3 bug and refine lastlinelen handling affected #: 3 files diff -r e97d7c933a74e34f45e704e8b129c67424cd11ce -r 5aa472a410edfaee7b89c0f6c7fd80d14dacc6a8 py/__init__.py --- a/py/__init__.py +++ b/py/__init__.py @@ -8,7 +8,7 @@ (c) Holger Krekel and others, 2004-2010 """ -__version__ = '1.4.7.dev3' +__version__ = '1.4.7.dev4' from py import _apipkg diff -r e97d7c933a74e34f45e704e8b129c67424cd11ce -r 5aa472a410edfaee7b89c0f6c7fd80d14dacc6a8 py/_io/terminalwriter.py --- a/py/_io/terminalwriter.py +++ b/py/_io/terminalwriter.py @@ -194,10 +194,17 @@ if not self._newline: self.write("\r") self.write(line, **opts) - lastlen = getattr(self, '_lastlinelen', None) - self._lastlinelen = lenlastline = len(line) - if lenlastline < lastlen: - self.write(" " * (lastlen - lenlastline + 1)) + # see if we need to fill up some spaces at the end + # xxx have a more exact lastlinelen working from self.write? + lenline = len(line) + try: + lastlen = self._lastlinelen + except AttributeError: + pass + else: + if lenline < lastlen: + self.write(" " * (lastlen - lenline + 1)) + self._lastlinelen = lenline self._newline = False diff -r e97d7c933a74e34f45e704e8b129c67424cd11ce -r 5aa472a410edfaee7b89c0f6c7fd80d14dacc6a8 setup.py --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ name='py', description='library with cross-python path, ini-parsing, io, code, log facilities', long_description = open('README.txt').read(), - version='1.4.7.dev3', + version='1.4.7.dev4', url='http://pylib.org', license='MIT license', platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], Repository URL: https://bitbucket.org/hpk42/py/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ py-svn mailing list py-svn@codespeak.net http://codespeak.net/mailman/listinfo/py-svn