[Commits] (vajda) more on StringReader
commits at osafoundation.org
commits at osafoundation.org
Sat May 1 16:24:22 PDT 2004
Commit by: vajda
Modified files:
osaf/chandler/Chandler/repository/util/Streams.py 1.11 1.12
Log message:
more on StringReader
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/osaf/chandler/Chandler/repository/util/Streams.py.diff?r1=text&tr1=1.11&r2=text&tr2=1.12
Index: osaf/chandler/Chandler/repository/util/Streams.py
diff -u osaf/chandler/Chandler/repository/util/Streams.py:1.11 osaf/chandler/Chandler/repository/util/Streams.py:1.12
--- osaf/chandler/Chandler/repository/util/Streams.py:1.11 Sat May 1 16:14:43 2004
+++ osaf/chandler/Chandler/repository/util/Streams.py Sat May 1 16:23:52 2004
@@ -1,6 +1,6 @@
-__revision__ = "$Revision: 1.11 $"
-__date__ = "$Date: 2004/05/01 23:14:43 $"
+__revision__ = "$Revision: 1.12 $"
+__date__ = "$Date: 2004/05/01 23:23:52 $"
__copyright__ = "Copyright (c) 2002 Open Source Applications Foundation"
__license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
@@ -268,10 +268,7 @@
if text is None:
return None
- if length >= len(text):
- length = -1
-
- if length == -1:
+ if length == -1 or length >= len(text):
self.unicodeText = None
return text
More information about the Commits
mailing list