Selaa lähdekoodia

StringMixin -> StringMixIn

tags/v0.1
Ben Kurtovic 12 vuotta sitten
vanhempi
commit
47bc513a7e
5 muutettua tiedostoa jossa 9 lisäystä ja 8 poistoa
  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 Näytä tiedosto

@@ -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


+ 2
- 2
mwparserfromhell/parameter.py Näytä tiedosto

@@ -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


+ 2
- 2
mwparserfromhell/string_mixin.py Näytä tiedosto

@@ -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))




+ 2
- 2
mwparserfromhell/template.py Näytä tiedosto

@@ -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:


+ 2
- 2
mwparserfromhell/text.py Näytä tiedosto

@@ -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




Ladataan…
Peruuta
Tallenna