Changeset 333 for pyyaml/trunk/lib/yaml/__init__.py
- Timestamp:
- 12/29/08 23:02:04 (4 years ago)
- File:
-
- 1 edited
-
pyyaml/trunk/lib/yaml/__init__.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib/yaml/__init__.py
r314 r333 92 92 getvalue = None 93 93 if stream is None: 94 try: 95 from cStringIO import StringIO 96 except ImportError: 97 from StringIO import StringIO 94 from StringIO import StringIO 98 95 stream = StringIO() 99 96 getvalue = stream.getvalue … … 116 113 getvalue = None 117 114 if stream is None: 118 try: 115 if encoding is None: 116 from StringIO import StringIO 117 else: 119 118 from cStringIO import StringIO 120 except ImportError:121 from StringIO import StringIO122 119 stream = StringIO() 123 120 getvalue = stream.getvalue … … 152 149 getvalue = None 153 150 if stream is None: 154 try: 151 if encoding is None: 152 from StringIO import StringIO 153 else: 155 154 from cStringIO import StringIO 156 except ImportError:157 from StringIO import StringIO158 155 stream = StringIO() 159 156 getvalue = stream.getvalue
Note: See TracChangeset
for help on using the changeset viewer.
