mirror of
https://gitee.com/openharmony/third_party_pyyaml
synced 2024-11-27 20:30:37 +00:00
Fixed typos in attribute names (Thanks to ingy).
This commit is contained in:
parent
9027393a4f
commit
3acc330efa
@ -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)
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user