summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxi <xi@18f92427-320e-0410-9341-c67f048884a3>2008-12-08 09:12:10 +0000
committerxi <xi@18f92427-320e-0410-9341-c67f048884a3>2008-12-08 09:12:10 +0000
commit2789ca89f6c8ddad02f3aa40fc0a9a3e7f05fcf5 (patch)
tree7ebc1adb2ad975af9d343f5b95c030c5b4b93ccd
parentbef1f29e88710dd507464598905e0e3fea2a7b03 (diff)
downloadpyyaml-2789ca89f6c8ddad02f3aa40fc0a9a3e7f05fcf5.tar.gz
Fixed typos in attribute names (Thanks to ingy).
git-svn-id: http://svn.pyyaml.org/pyyaml/trunk@307 18f92427-320e-0410-9341-c67f048884a3
-rw-r--r--lib/yaml/dumper.py2
-rw-r--r--lib/yaml/emitter.py6
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]