Este site funciona melhor com JavaScript.
Página inicial
Ajuda
Acessar
ben
/
mwparserfromhell
espelhamento de
https://github.com/earwig/mwparserfromhell
Observar
1
Favorito
1
Fork
0
Código
Versões
24
Atividade
Ver código fonte
Fix some bugs; satisfy PyLint on certain inheritance things.
tags/v0.1
Ben Kurtovic
12 anos atrás
pai
227ac924ee
commit
137b9fc68f
10 arquivos alterados
com
12 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+3
-0
mwparserfromhell/nodes/__init__.py
+1
-0
mwparserfromhell/nodes/extras/attribute.py
+1
-0
mwparserfromhell/nodes/extras/parameter.py
+1
-0
mwparserfromhell/nodes/heading.py
+1
-0
mwparserfromhell/nodes/html_entity.py
+1
-0
mwparserfromhell/nodes/tag.py
+1
-0
mwparserfromhell/nodes/template.py
+1
-0
mwparserfromhell/nodes/text.py
+1
-1
mwparserfromhell/smart_list.py
+1
-0
mwparserfromhell/wikicode.py
+ 3
- 0
mwparserfromhell/nodes/__init__.py
Ver arquivo
@@ -25,6 +25,9 @@ from ..string_mixin import StringMixIn
__all__ = ["Node"]
class Node(StringMixIn):
def __unicode__(self):
raise NotImplementedError()
def __iternodes__(self, getter):
yield None, self
+ 1
- 0
mwparserfromhell/nodes/extras/attribute.py
Ver arquivo
@@ -26,6 +26,7 @@ __all__ = ["Attribute"]
class Attribute(StringMixIn):
def __init__(self, name, value=None, quoted=True):
super(Attribute, self).__init__(self)
self._name = name
self._value = value
self._quoted = quoted
+ 1
- 0
mwparserfromhell/nodes/extras/parameter.py
Ver arquivo
@@ -27,6 +27,7 @@ __all__ = ["Parameter"]
class Parameter(StringMixIn):
def __init__(self, name, value, showkey=True):
super(Parameter, self).__init__(self)
self._name = name
self._value = value
self._showkey = showkey
+ 1
- 0
mwparserfromhell/nodes/heading.py
Ver arquivo
@@ -26,6 +26,7 @@ __all__ = ["Heading"]
class Heading(Node):
def __init__(self, title, level):
super(Heading, self).__init__(self)
self._title = title
self._level = level
+ 1
- 0
mwparserfromhell/nodes/html_entity.py
Ver arquivo
@@ -28,6 +28,7 @@ __all__ = ["HTMLEntity"]
class HTMLEntity(Node):
def __init__(self, value, named=None, hexadecimal=False):
super(HTMLEntity, self).__init__(self)
self._value = value
if named is None: # Try to guess whether or not the entity is named
try:
+ 1
- 0
mwparserfromhell/nodes/tag.py
Ver arquivo
@@ -69,6 +69,7 @@ class Tag(Node):
def __init__(self, type_, tag, contents, attrs=None, showtag=True,
self_closing=False, open_padding=0, close_padding=0):
super(Tag, self).__init__(self)
self._type = type_
self._tag = tag
self._contents = contents
+ 1
- 0
mwparserfromhell/nodes/template.py
Ver arquivo
@@ -33,6 +33,7 @@ FLAGS = re.DOTALL | re.UNICODE
class Template(Node):
def __init__(self, name, params=None):
super(Template, self).__init__(self)
self._name = name
if params:
self._params = params
+ 1
- 0
mwparserfromhell/nodes/text.py
Ver arquivo
@@ -26,6 +26,7 @@ __all__ = ["Text"]
class Text(Node):
def __init__(self, value):
super(Text, self).__init__(self)
self._value = value
def __unicode__(self):
+ 1
- 1
mwparserfromhell/smart_list.py
Ver arquivo
@@ -100,7 +100,7 @@ class SmartList(list):
del self[index]
return item
def remove(item):
def remove(
self,
item):
del self[self.index(item)]
def reverse(self):
+ 1
- 0
mwparserfromhell/wikicode.py
Ver arquivo
@@ -33,6 +33,7 @@ FLAGS = re.IGNORECASE | re.DOTALL | re.UNICODE
class Wikicode(StringMixIn):
def __init__(self, nodes):
super(Wikicode, self).__init__(self)
self._nodes = nodes
def __unicode__(self):
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar