Skip to content

Commit cb38135

Browse files
authored
Merge pull request #2563 from nexB/remove-deprecation-warnings
Remove deprecation warnings
2 parents bfb4110 + 8b4b61b commit cb38135

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/formattedcode/output_debian.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
# See https://github.com/nexB/scancode-toolkit for support or download.
77
# See https://aboutcode.org for more information about nexB OSS projects.
88

9-
from debut.copyright import CopyrightFilesParagraph
10-
from debut.copyright import CopyrightHeaderParagraph
11-
from debut.copyright import DebianCopyright
9+
from debian_inspector.copyright import CopyrightFilesParagraph
10+
from debian_inspector.copyright import CopyrightHeaderParagraph
11+
from debian_inspector.copyright import DebianCopyright
1212
from license_expression import Licensing
1313

1414
from commoncode.cliutils import PluggableCommandLineOption

src/formattedcode/output_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def write_results(codebase, output_file, pretty=False, **kwargs):
9999

100100
# Begin wri'w' JSON to `output_file`
101101
with jsonstreams.Stream(
102-
jsonstreams.Type.object,
102+
jsonstreams.Type.OBJECT,
103103
fd=output_file,
104104
close_fd=close_fd,
105105
**jsonstreams_kwargs

src/scancode/cli_test_utils.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def run_scan_plain(
2727
"""
2828
Run a scan as a plain subprocess. Return rc, stdout, stderr.
2929
"""
30-
from commoncode.command import execute2
30+
31+
from commoncode.command import execute
3132

3233
options = add_windows_extra_timeout(options)
3334

@@ -39,7 +40,7 @@ def run_scan_plain(
3940

4041
scmd = u'scancode'
4142
scan_cmd = os.path.join(scancode_root_dir, scmd)
42-
rc, stdout, stderr = execute2(
43+
rc, stdout, stderr = execute(
4344
cmd_loc=scan_cmd,
4445
args=options,
4546
cwd=cwd,
@@ -51,7 +52,7 @@ def run_scan_plain(
5152
time.sleep(1)
5253
if '--verbose' not in options:
5354
options.append('--verbose')
54-
result = rc, stdout, stderr = execute2(
55+
result = rc, stdout, stderr = execute(
5556
cmd_loc=scan_cmd,
5657
args=options,
5758
cwd=cwd,

0 commit comments

Comments
 (0)