Changeset 361 for pyyaml/trunk/lib3/yaml/constructor.py
- Timestamp:
- 08/30/09 15:32:07 (3 years ago)
- Files:
-
- 1 modified
-
pyyaml/trunk/lib3/yaml/constructor.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/lib3/yaml/constructor.py
r329 r361 286 286 node.start_mark) 287 287 try: 288 return base64.decodestring(value) 288 if hasattr(base64, 'decodebytes'): 289 return base64.decodebytes(value) 290 else: 291 return base64.decodestring(value) 289 292 except binascii.Error as exc: 290 293 raise ConstructorError(None, None, … … 478 481 node.start_mark) 479 482 try: 480 return base64.decodestring(value) 483 if hasattr(base64, 'decodebytes'): 484 return base64.decodebytes(value) 485 else: 486 return base64.decodestring(value) 481 487 except binascii.Error as exc: 482 488 raise ConstructorError(None, None,
