Fixed typos in attribute names (Thanks to ingy).

This commit is contained in:
Kirill Simonov 2008-12-08 09:12:10 +00:00
parent 9027393a4f
commit 3acc330efa
2 changed files with 3 additions and 5 deletions

View File

@ -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)

View File

@ -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]