@@ -35,6 +35,7 @@ __email__ = "ben.kurtovic@verizon.net" | |||||
from mwparserfromhell.node import Node | from mwparserfromhell.node import Node | ||||
from mwparserfromhell.parameter import Parameter | from mwparserfromhell.parameter import Parameter | ||||
from mwparserfromhell.parser import Parser | from mwparserfromhell.parser import Parser | ||||
from mwparserfromhell.string_mixin import StringMixIn | |||||
from mwparserfromhell.template import Template | from mwparserfromhell.template import Template | ||||
from mwparserfromhell.text import Text | from mwparserfromhell.text import Text | ||||
from mwparserfromhell.wikicode import Wikicode | from mwparserfromhell.wikicode import Wikicode | ||||
@@ -20,11 +20,11 @@ | |||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
# SOFTWARE. | # SOFTWARE. | ||||
from mwparserfromhell.string_mixin import StringMixin | |||||
from mwparserfromhell.string_mixin import StringMixIn | |||||
__all__ = ["Parameter"] | __all__ = ["Parameter"] | ||||
class Parameter(StringMixin): | |||||
class Parameter(StringMixIn): | |||||
def __init__(self, name, value=None, showkey=True): | def __init__(self, name, value=None, showkey=True): | ||||
self._name = name | self._name = name | ||||
self._value = value | self._value = value | ||||
@@ -20,9 +20,9 @@ | |||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||||
# SOFTWARE. | # SOFTWARE. | ||||
__all__ = ["StringMixin"] | |||||
__all__ = ["StringMixIn"] | |||||
class StringMixin(object): | |||||
class StringMixIn(object): | |||||
def __str__(self): | def __str__(self): | ||||
return str(unicode(self)) | return str(unicode(self)) | ||||
@@ -21,11 +21,11 @@ | |||||
# SOFTWARE. | # SOFTWARE. | ||||
from mwparserfromhell.node import Node | from mwparserfromhell.node import Node | ||||
from mwparserfromhell.string_mixin import StringMixin | |||||
from mwparserfromhell.string_mixin import StringMixIn | |||||
__all__ = ["Template"] | __all__ = ["Template"] | ||||
class Template(Node, StringMixin): | |||||
class Template(Node, StringMixIn): | |||||
def __init__(self, name, params=None): | def __init__(self, name, params=None): | ||||
self._name = name | self._name = name | ||||
if params: | if params: | ||||
@@ -21,11 +21,11 @@ | |||||
# SOFTWARE. | # SOFTWARE. | ||||
from mwparserfromhell.node import Node | from mwparserfromhell.node import Node | ||||
from mwparserfromhell.string_mixin import StringMixin | |||||
from mwparserfromhell.string_mixin import StringMixIn | |||||
__all__ = ["Text"] | __all__ = ["Text"] | ||||
class Text(Node, StringMixin): | |||||
class Text(Node, StringMixIn): | |||||
def __init__(self, value): | def __init__(self, value): | ||||
self._value = value | self._value = value | ||||