Changeset 391 for python/trunk/Lib/plistlib.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/plistlib.py
r2 r391 225 225 PLISTHEADER = """\ 226 226 <?xml version="1.0" encoding="UTF-8"?> 227 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">227 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 228 228 """ 229 229 … … 263 263 self.beginElement("data") 264 264 self.indentLevel -= 1 265 maxlinelength = 76 - len(self.indent.replace("\t", " " * 8) *266 self.indentLevel) 265 maxlinelength = max(16, 76 - len(self.indent.replace("\t", " " * 8) * 266 self.indentLevel)) 267 267 for line in data.asBase64(maxlinelength).split("\n"): 268 268 if line:
Note:
See TracChangeset
for help on using the changeset viewer.