Formatting cleanup

This commit is contained in:
pR0Ps 2014-12-26 13:58:45 -05:00
parent 7a7e135f2b
commit 27433419bd

View File

@ -57,13 +57,14 @@ try:
except ImportError:
from yaml import Loader
# Override the default string handling function to always return unicode objects
def construct_yaml_str(self, node):
return self.construct_scalar(node)
Loader.add_constructor(u'tag:yaml.org,2002:str', construct_yaml_str)
class MetaYamlExtension (Extension):
class MetaYamlExtension (Extension):
"""Extension for parsing YAML-Metadata with Python-Markdown."""
def extendMarkdown(self, md, md_globals):
@ -72,7 +73,6 @@ class MetaYamlExtension (Extension):
class MetaYamlPreprocessor(Preprocessor):
"""
Get Meta-Data.