From 3acc330efae95547ae196cd000903c0d82e95c6b Mon Sep 17 00:00:00 2001 From: Kirill Simonov Date: Mon, 8 Dec 2008 09:12:10 +0000 Subject: [PATCH] Fixed typos in attribute names (Thanks to ingy). --- lib/yaml/dumper.py | 2 +- lib/yaml/emitter.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/yaml/dumper.py b/lib/yaml/dumper.py index 355c1e2..f811d2c 100644 --- a/lib/yaml/dumper.py +++ b/lib/yaml/dumper.py @@ -16,7 +16,7 @@ class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): version=None, tags=None): Emitter.__init__(self, stream, canonical=canonical, indent=indent, width=width, - allow_uncode=allow_unicode, line_break=line_break) + allow_unicode=allow_unicode, line_break=line_break) Serializer.__init__(self, encoding=encoding, explicit_start=explicit_start, explicit_end=explicit_end, version=version, tags=tags) 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]