summaryrefslogtreecommitdiff
path: root/lib/yaml/emitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yaml/emitter.py')
-rw-r--r--lib/yaml/emitter.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/yaml/emitter.py b/lib/yaml/emitter.py
index a4e99e0..fd16dc8 100644
--- a/lib/yaml/emitter.py
+++ b/lib/yaml/emitter.py
@@ -11,8 +11,6 @@ __all__ = ['Emitter', 'EmitterError']
from error import YAMLError
from events import *
-import re
-
class EmitterError(YAMLError):
pass
@@ -1111,7 +1109,7 @@ class Emitter(object):
if self.encoding:
data = data.encode(self.encoding)
self.stream.write(data)
- self.writespace = False
+ self.whitespace = False
self.indention = False
spaces = False
breaks = False
@@ -1124,7 +1122,7 @@ class Emitter(object):
if ch != u' ':
if start+1 == end and self.column > self.best_width and split:
self.write_indent()
- self.writespace = False
+ self.whitespace = False
self.indention = False
else:
data = text[start:end]