Index: pyyaml/trunk/lib3/yaml/constructor.py
===================================================================
--- pyyaml/trunk/lib3/yaml/constructor.py	(revision 329)
+++ pyyaml/trunk/lib3/yaml/constructor.py	(revision 361)
@@ -286,5 +286,8 @@
                     node.start_mark)
         try:
-            return base64.decodestring(value)
+            if hasattr(base64, 'decodebytes'):
+                return base64.decodebytes(value)
+            else:
+                return base64.decodestring(value)
         except binascii.Error as exc:
             raise ConstructorError(None, None,
@@ -478,5 +481,8 @@
                     node.start_mark)
         try:
-            return base64.decodestring(value)
+            if hasattr(base64, 'decodebytes'):
+                return base64.decodebytes(value)
+            else:
+                return base64.decodestring(value)
         except binascii.Error as exc:
             raise ConstructorError(None, None,
