Update of /cvsroot/pythonreports/PythonReports/PythonReports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1660
Modified Files:
drivers.py
Log Message:
more lint fixes
Index: drivers.py
===================================================================
RCS file: /cvsroot/pythonreports/PythonReports/PythonReports/drivers.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** drivers.py 6 Dec 2006 16:40:34 -0000 1.6
--- drivers.py 6 Dec 2006 19:37:20 -0000 1.7
***************
*** 6,9 ****
--- 6,10 ----
"""
"""History (most recent first):
+ 06-dec-2006 [als] more lint fixes
05-dec-2006 [als] sweep pylint warnings
04-nov-2006 [als] added text driver backend "Tk";
***************
*** 312,317 ****
"""
! (_w, _h) = self.getsize(text)
! if _w <= width:
return text
# split text to words. inter-word spaces go to previous word.
--- 313,318 ----
"""
! _tw = self.getsize(text)[0]
! if _tw <= width:
return text
# split text to words. inter-word spaces go to previous word.
***************
*** 323,328 ****
while _ii > 1:
_line = "".join(_words[:_ii]).rstrip()
! (_w, _h) = self.getsize(_line)
! if _w <= width:
break
_ii -= 1
--- 324,329 ----
while _ii > 1:
_line = "".join(_words[:_ii]).rstrip()
! _tw = self.getsize(_line)[0]
! if _tw <= width:
break
_ii -= 1
|