Changeset 336 for pyyaml/trunk/lib3/yaml/__init__.py
- Timestamp:
- 12/30/08 13:18:53 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib3/yaml/__init__.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib3/yaml/__init__.py
r331 r336 105 105 canonical=None, indent=None, width=None, 106 106 allow_unicode=None, line_break=None, 107 encoding= 'utf-8', explicit_start=None, explicit_end=None,107 encoding=None, explicit_start=None, explicit_end=None, 108 108 version=None, tags=None): 109 109 """ … … 113 113 getvalue = None 114 114 if stream is None: 115 stream = io.StringIO() 115 if encoding is None: 116 stream = io.StringIO() 117 else: 118 stream = io.BytesIO() 116 119 getvalue = stream.getvalue 117 120 dumper = Dumper(stream, canonical=canonical, indent=indent, width=width, … … 137 140 canonical=None, indent=None, width=None, 138 141 allow_unicode=None, line_break=None, 139 encoding= 'utf-8', explicit_start=None, explicit_end=None,142 encoding=None, explicit_start=None, explicit_end=None, 140 143 version=None, tags=None): 141 144 """ … … 145 148 getvalue = None 146 149 if stream is None: 147 stream = io.StringIO() 150 if encoding is None: 151 stream = io.StringIO() 152 else: 153 stream = io.BytesIO() 148 154 getvalue = stream.getvalue 149 155 dumper = Dumper(stream, default_style=default_style,
Note: See TracChangeset
for help on using the changeset viewer.
