Преглед изворни кода

StringMixin -> StringMixIn

tags/v0.1
Ben Kurtovic пре 12 година
родитељ
комит
47bc513a7e
5 измењених фајлова са 9 додато и 8 уклоњено
  1. +1
    -0
      mwparserfromhell/__init__.py
  2. +2
    -2
      mwparserfromhell/parameter.py
  3. +2
    -2
      mwparserfromhell/string_mixin.py
  4. +2
    -2
      mwparserfromhell/template.py
  5. +2
    -2
      mwparserfromhell/text.py

+ 1
- 0
mwparserfromhell/__init__.py Прегледај датотеку

@@ -35,6 +35,7 @@ __email__ = "ben.kurtovic@verizon.net"
from mwparserfromhell.node import Node
from mwparserfromhell.parameter import Parameter
from mwparserfromhell.parser import Parser
from mwparserfromhell.string_mixin import StringMixIn
from mwparserfromhell.template import Template
from mwparserfromhell.text import Text
from mwparserfromhell.wikicode import Wikicode


+ 2
- 2
mwparserfromhell/parameter.py Прегледај датотеку

@@ -20,11 +20,11 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from mwparserfromhell.string_mixin import StringMixin
from mwparserfromhell.string_mixin import StringMixIn

__all__ = ["Parameter"]

class Parameter(StringMixin):
class Parameter(StringMixIn):
def __init__(self, name, value=None, showkey=True):
self._name = name
self._value = value


+ 2
- 2
mwparserfromhell/string_mixin.py Прегледај датотеку

@@ -20,9 +20,9 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

__all__ = ["StringMixin"]
__all__ = ["StringMixIn"]

class StringMixin(object):
class StringMixIn(object):
def __str__(self):
return str(unicode(self))



+ 2
- 2
mwparserfromhell/template.py Прегледај датотеку

@@ -21,11 +21,11 @@
# SOFTWARE.

from mwparserfromhell.node import Node
from mwparserfromhell.string_mixin import StringMixin
from mwparserfromhell.string_mixin import StringMixIn

__all__ = ["Template"]

class Template(Node, StringMixin):
class Template(Node, StringMixIn):
def __init__(self, name, params=None):
self._name = name
if params:


+ 2
- 2
mwparserfromhell/text.py Прегледај датотеку

@@ -21,11 +21,11 @@
# SOFTWARE.

from mwparserfromhell.node import Node
from mwparserfromhell.string_mixin import StringMixin
from mwparserfromhell.string_mixin import StringMixIn

__all__ = ["Text"]

class Text(Node, StringMixin):
class Text(Node, StringMixIn):
def __init__(self, value):
self._value = value



Loading…
Откажи
Сачувај