Commit 71a97ed2 by Chris Jerdonek

Added docstrings to all modules to avoid doctest bug 14649: http://bugs.python.org/issue14649

parent 15e6db66
"""
TODO: add a docstring.
"""
# We keep all initialization code in a separate module. # We keep all initialization code in a separate module.
# TODO: consider doing something like this instead: # TODO: consider doing something like this instead:
# from pystache.init import __version__, render, Renderer, TemplateSpec # from pystache.init import __version__, render, Renderer, TemplateSpec
......
# coding: utf-8 # coding: utf-8
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class SayHello(object): class SayHello(object):
......
"""
TODO: add a docstring.
"""
class Comments(object): class Comments(object):
def title(self): def title(self):
......
"""
TODO: add a docstring.
"""
class Complex(object): class Complex(object):
def header(self): def header(self):
......
"""
TODO: add a docstring.
"""
class Delimiters(object): class Delimiters(object):
def first(self): def first(self):
......
"""
TODO: add a docstring.
"""
class DoubleSection(object): class DoubleSection(object):
def t(self): def t(self):
......
"""
TODO: add a docstring.
"""
class Escaped(object): class Escaped(object):
def title(self): def title(self):
......
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class Inverted(object): class Inverted(object):
......
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
def rot(s, n=13): def rot(s, n=13):
......
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class NestedContext(TemplateSpec): class NestedContext(TemplateSpec):
......
"""
TODO: add a docstring.
"""
from pystache.tests.examples.lambdas import rot from pystache.tests.examples.lambdas import rot
class PartialsWithLambdas(object): class PartialsWithLambdas(object):
......
"""
TODO: add a docstring.
"""
class SayHello(object): class SayHello(object):
def to(self): def to(self):
return "Pizza" return "Pizza"
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class Simple(TemplateSpec): class Simple(TemplateSpec):
......
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class TemplatePartial(TemplateSpec): class TemplatePartial(TemplateSpec):
......
"""
TODO: add a docstring.
"""
class Unescaped(object): class Unescaped(object):
def title(self): def title(self):
......
"""
TODO: add a docstring.
"""
from pystache import TemplateSpec from pystache import TemplateSpec
class UnicodeInput(TemplateSpec): class UnicodeInput(TemplateSpec):
......
# encoding: utf-8 # encoding: utf-8
"""
TODO: add a docstring.
"""
class UnicodeOutput(object): class UnicodeOutput(object):
def name(self): def name(self):
......
# encoding: utf-8 # encoding: utf-8
"""
TODO: add a docstring.
"""
import unittest import unittest
from examples.comments import Comments from examples.comments import Comments
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment