Ver código fonte

Move mwpfh.parser.utils to mwpfh.utils; fix import structure.

tags/v0.1
Ben Kurtovic 12 anos atrás
pai
commit
900c559385
4 arquivos alterados com 4 adições e 4 exclusões
  1. +1
    -1
      mwparserfromhell/nodes/extras/parameter.py
  2. +1
    -1
      mwparserfromhell/nodes/template.py
  3. +1
    -1
      mwparserfromhell/utils.py
  4. +1
    -1
      mwparserfromhell/wikicode.py

+ 1
- 1
mwparserfromhell/nodes/extras/parameter.py Ver arquivo

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

from mwparserfromhell.parser.utils import parse_anything
from mwparserfromhell.string_mixin import StringMixIn
from mwparserfromhell.utils import parse_anything

__all__ = ["Parameter"]



+ 1
- 1
mwparserfromhell/nodes/template.py Ver arquivo

@@ -22,7 +22,7 @@

from mwparserfromhell.nodes import Node
from mwparserfromhell.nodes.extras import Parameter
from mwparserfromhell.parser.utils import parse_anything
from mwparserfromhell.utils import parse_anything

__all__ = ["Template"]



mwparserfromhell/parser/utils.py → mwparserfromhell/utils.py Ver arquivo

@@ -22,9 +22,9 @@

import mwparserfromhell
from mwparserfromhell.nodes import Node
from mwparserfromhell.wikicode import Wikicode

def parse_anything(value):
Wikicode = mwparserfromhell.wikicode.Wikicode
if isinstance(value, Wikicode):
return value
if isinstance(value, Node):

+ 1
- 1
mwparserfromhell/wikicode.py Ver arquivo

@@ -23,8 +23,8 @@
import re

from mwparserfromhell.nodes import HTMLEntity, Node, Template, Text
from mwparserfromhell.parser.utils import parse_anything
from mwparserfromhell.string_mixin import StringMixIn
from mwparserfromhell.utils import parse_anything

__all__ = ["Wikicode"]



Carregando…
Cancelar
Salvar