Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Updates imports to undebt.pattern.lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mason committed Aug 31, 2016
1 parent f389f07 commit 016fd69
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/source/patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If `patterns` is defined, Undebt will ignore any definitions of `grammar`, `repl

As an example, you can replicate the behavior of the basic style `extra` by doing the following::

from undebt.pattern.python import HEADER
from undebt.pattern.lang.python import HEADER

@tokens_as_list(assert_len=1)
def extra_replace(tokens):
Expand Down
2 changes: 1 addition & 1 deletion tests/pattern/interface_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from undebt.pattern.interface import load_module
from undebt.pattern.interface import maybe_path_to_module_name
from undebt.pattern.interface import _get_patterns
from undebt.pattern.python import HEADER
from undebt.pattern.lang.python import HEADER


def test_get_patterns_module_with_patterns():
Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/attribute_to_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from undebt.pattern.common import DOT
from undebt.pattern.common import NAME
from undebt.pattern.common import PARENS
from undebt.pattern.python import ATOM_BASE
from undebt.pattern.lang.python import ATOM_BASE
from undebt.pattern.util import condense
from undebt.pattern.util import tokens_as_list

Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/contextlib_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from undebt.pattern.common import IND_RPAREN
from undebt.pattern.common import INDENT
from undebt.pattern.common import LPAREN_IND
from undebt.pattern.python import EXPR
from undebt.pattern.lang.python import EXPR
from undebt.pattern.util import tokens_as_dict


Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/exec_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from undebt.pattern.common import COMMA
from undebt.pattern.common import INDENT
from undebt.pattern.python import ATOM
from undebt.pattern.lang.python import ATOM
from undebt.pattern.util import tokens_as_list


Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/method_to_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from undebt.pattern.common import NAME
from undebt.pattern.common import PARENS
from undebt.pattern.common import RPAREN
from undebt.pattern.python import ATOM_BASE
from undebt.pattern.lang.python import ATOM_BASE
from undebt.pattern.util import condense
from undebt.pattern.util import tokens_as_list

Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/remove_unused_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import division
from __future__ import print_function

from undebt.pattern.python import HEADER
from undebt.pattern.lang.python import HEADER
from undebt.pattern.util import tokens_as_list


Expand Down
2 changes: 1 addition & 1 deletion undebt/examples/swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from pyparsing import SkipTo

from undebt.pattern.common import NAME
from undebt.pattern.python import EXPR
from undebt.pattern.lang.python import EXPR
from undebt.pattern.util import condense
from undebt.pattern.util import tokens_as_dict

Expand Down
2 changes: 1 addition & 1 deletion undebt/pattern/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_patterns(pattern):

def get_pattern_for_extra(extra):
"""Returns a pattern object for an extra string."""
from undebt.pattern.python import HEADER
from undebt.pattern.lang.python import HEADER

@tokens_as_list(assert_len=1)
def extra_replace(tokens):
Expand Down

0 comments on commit 016fd69

Please sign in to comment.