Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/serializer.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/serializer.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/serializer.py	(working copy)
@@ -60,7 +60,7 @@
     def anchor_node(self, node):
         if node in self.anchors:
             if self.anchors[node] is None:
-                self.anchors[node] = self.generate_anchor(node)
+                self.anchors[node] = self.generate_anchor()
         else:
             self.anchors[node] = None
             if isinstance(node, SequenceNode):
@@ -71,7 +71,7 @@
                     self.anchor_node(key)
                     self.anchor_node(value)
 
-    def generate_anchor(self, node):
+    def generate_anchor(self):
         self.last_anchor_id += 1
         return self.ANCHOR_TEMPLATE % self.last_anchor_id
 
Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/emitter.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/emitter.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/emitter.py	(working copy)
@@ -63,8 +63,6 @@
         self.flow_level = 0
 
         # Contexts.
-        self.root_context = False
-        self.sequence_context = False
         self.mapping_context = False
         self.simple_key_context = False
 
@@ -167,7 +165,7 @@
     # Document handlers.
 
     def expect_first_document_start(self):
-        return self.expect_document_start(first=True)
+        self.expect_document_start(first=True)
 
     def expect_document_start(self, first=False):
         if isinstance(self.event, DocumentStartEvent):
@@ -220,8 +218,6 @@
 
     def expect_node(self, root=False, sequence=False, mapping=False,
             simple_key=False):
-        self.root_context = root
-        self.sequence_context = sequence
         self.mapping_context = mapping
         self.simple_key_context = simple_key
         if isinstance(self.event, AliasEvent):
@@ -360,7 +356,7 @@
         self.state = self.expect_first_block_sequence_item
 
     def expect_first_block_sequence_item(self):
-        return self.expect_block_sequence_item(first=True)
+        self.expect_block_sequence_item(first=True)
 
     def expect_block_sequence_item(self, first=False):
         if not first and isinstance(self.event, SequenceEndEvent):
@@ -628,8 +624,6 @@
         special_characters = False
 
         # Whitespaces.
-        inline_spaces = False          # non-space space+ non-space
-        inline_breaks = False          # non-space break+ non-space
         leading_spaces = False         # ^ space+ (non-space | $)
         leading_breaks = False         # ^ break+ (non-space | $)
         trailing_spaces = False        # (^ | non-space) space+ $
@@ -741,10 +735,6 @@
                         mixed_breaks_spaces = True
                     elif spaces and breaks:
                         inline_breaks_spaces = True
-                    elif spaces:
-                        inline_spaces = True
-                    elif breaks:
-                        inline_breaks = True
                 spaces = breaks = mixed = leading = False
 
             # Series of whitespaces reach the end.
Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/constructor.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/constructor.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/constructor.py	(working copy)
@@ -68,7 +68,6 @@
                     "found unconstructable recursive node", node.start_mark)
         self.recursive_objects[node] = None
         constructor = None
-        state_constructor = None
         tag_suffix = None
         if node.tag in self.yaml_constructors:
             constructor = self.yaml_constructors[node.tag]
