From 2789ca89f6c8ddad02f3aa40fc0a9a3e7f05fcf5 Mon Sep 17 00:00:00 2001 From: xi Date: Mon, 8 Dec 2008 09:12:10 +0000 Subject: Fixed typos in attribute names (Thanks to ingy). git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@307 18f92427-320e-0410-9341-c67f048884a3 --- lib/yaml/dumper.py | 2 +- lib/yaml/emitter.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') 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] -- cgit v1.2.1