Skip to content

Commit 5771312

Browse files
committed
Rename compat.py to breaking_changes.py
Done in separate commit to make rename detection happy
1 parent b41fc06 commit 5771312

18 files changed

+20
-18
lines changed

MODULEINFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ Make: dmlc
3131
$(HOST)/bin/dml/python/__main__.py
3232
$(HOST)/bin/dml/python/dml/__init__.py
3333
$(HOST)/bin/dml/python/dml/ast.py
34+
$(HOST)/bin/dml/python/dml/breaking_changes.py
3435
$(HOST)/bin/dml/python/dml/c_backend.py
3536
$(HOST)/bin/dml/python/dml/g_backend.py
3637
$(HOST)/bin/dml/python/dml/codegen.py
37-
$(HOST)/bin/dml/python/dml/compat.py
3838
$(HOST)/bin/dml/python/dml/crep.py
3939
$(HOST)/bin/dml/python/dml/ctree.py
4040
$(HOST)/bin/dml/python/dml/dmllex.py

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ LIBDIR := $(SIMICS_PROJECT)/$(HOST_TYPE)/bin
1010

1111
PYFILES := dml/__init__.py \
1212
dml/ast.py \
13+
dml/breaking_changes.py \
1314
dml/c_backend.py \
1415
dml/g_backend.py \
1516
dml/codegen.py \
16-
dml/compat.py \
1717
dml/crep.py \
1818
dml/ctree.py \
1919
dml/template.py \

deprecations_to_md.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[path_to_dml, header, outfile] = sys.argv[1:]
77
sys.path.append(path_to_dml)
88

9-
from dml import compat
9+
from dml import breaking_changes as compat
1010
from dml.env import api_versions, default_api_version
1111

1212
by_version = {}

dmlast.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def create_dmlasts(dmlc_path, dmlast_path, dml_path, depfile):
99
from dml.toplevel import produce_dmlast
1010
from dml.logging import ignore_warning
1111
import dml.globals
12-
from dml import compat
12+
from dml import breaking_changes as compat
1313

1414
ignore_warning('WEXPERIMENTAL')
1515
dml.globals.enabled_compat.add(compat.warning_statement)
@@ -35,4 +35,3 @@ def create_dmlasts(dmlc_path, dmlast_path, dml_path, depfile):
3535
[dmlc_path, dmlast_path, dml_path, depfile] = map(Path, sys.argv[1:])
3636
create_dmlasts(dmlc_path.resolve(), dmlast_path.resolve(),
3737
dml_path.resolve(), depfile)
38-

py/dead_dml_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def method_locations(path):
114114
from dml.toplevel import parse_file, determine_version
115115
from dml import logging, messages
116116
import dml.globals
117-
from dml import compat
117+
from dml import breaking_changes as compat
118118
# needed to parse 1.2/utility.dml
119119
dml.globals.enabled_compat.add(compat.warning_statement)
120120
for warning in messages.warnings:

py/dml/c_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
from pathlib import Path
1414

1515
from . import objects, logging, crep, output, ctree, serialize, structure
16-
from . import traits, compat
16+
from . import traits
17+
from . import breaking_changes as compat
1718
import dml.globals
1819
from .structure import get_attr_name, port_class_ident, need_port_proxy_attrs
1920
from .logging import *

py/dml/codegen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import math
1313

1414
from . import objects, crep, ctree, ast, int_register, logging, serialize
15-
from . import dmlparse, output, compat
15+
from . import dmlparse, output
16+
from . import breaking_changes as compat
1617
from .logging import *
1718
from .expr import *
1819
from .ctree import *

py/dml/crep.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .logging import *
1111
from .expr_util import *
1212
from .messages import *
13-
from . import compat
13+
from . import breaking_changes as compat
1414

1515
__all__ = (
1616
'cname',

py/dml/ctree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from .set import Set
2222
from .slotsmeta import auto_init
2323
from . import dmlparse, output
24-
from . import compat
24+
from . import breaking_changes as compat
2525
import dml.globals
2626
# set from codegen.py
2727
codegen_call_expr = None

0 commit comments

Comments
 (0)