Skip to content

Commit 8dc2a28

Browse files
authored
Merge pull request #6256 from harvey0100/deprecation-notices
Deprecation Warnings
2 parents 111ca38 + c15c92c commit 8dc2a28

File tree

7 files changed

+43
-2
lines changed

7 files changed

+43
-2
lines changed

.github/workflows/autils_migration_announcement.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ on:
66
- opened
77
paths:
88
- '**/ar.py'
9-
- '**/path.py'
9+
- '**/astring.py'
1010
- '**/data_structures.py'
11-
- '**/network/ports.py'
1211
- '**/external/gdbmi_parser.py'
1312
- '**/external/spark.py'
13+
- '**/gdb.py'
14+
- '**/network/ports.py'
1415
- '**/output.py'
16+
- '**/path.py'
17+
- '**/process.py'
18+
- '**/script.py'
19+
- '**/wait.py'
1520

1621
jobs:
1722
commnet-to-pr:

avocado/utils/ar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,9 @@ def read_member(self, identifier):
119119
open_file.seek(member.offset)
120120
return open_file.read(member.size)
121121
return None
122+
123+
124+
# pylint: disable=wrong-import-position
125+
from avocado.utils.deprecation import log_deprecation
126+
127+
log_deprecation.warning("ar")

avocado/utils/astring.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,3 +508,9 @@ def to_text(data, encoding=ENCODING, errors="strict"):
508508
if not isinstance(data, str):
509509
return str(data)
510510
return data
511+
512+
513+
# pylint: disable=wrong-import-position
514+
from avocado.utils.deprecation import log_deprecation
515+
516+
log_deprecation.warning("astring")

avocado/utils/gdb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,3 +894,9 @@ def connect(self):
894894

895895
if self._extended_mode:
896896
self.set_extended_mode()
897+
898+
899+
# pylint: disable=wrong-import-position
900+
from avocado.utils.deprecation import log_deprecation
901+
902+
log_deprecation.warning("gdb")

avocado/utils/process.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,3 +1459,9 @@ def get_command_output_matching(command, pattern):
14591459
['file1.txt', 'file2.txt']
14601460
"""
14611461
return [line for line in run(command).stdout_text.splitlines() if pattern in line]
1462+
1463+
1464+
# pylint: disable=wrong-import-position
1465+
from avocado.utils.deprecation import log_deprecation
1466+
1467+
log_deprecation.warning("process")

avocado/utils/script.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,9 @@ def make_temp_script(name, content, prefix="avocado_script", mode=DEFAULT_MODE):
199199
scpt = TemporaryScript(name, content, prefix=prefix, mode=mode)
200200
scpt.save()
201201
return scpt.path
202+
203+
204+
# pylint: disable=wrong-import-position
205+
from avocado.utils.deprecation import log_deprecation
206+
207+
log_deprecation.warning("script")

avocado/utils/wait.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,9 @@ def wait_for(func, timeout, first=0.0, step=1.0, text=None, args=None, kwargs=No
102102
time.sleep(step)
103103

104104
return None
105+
106+
107+
# pylint: disable=wrong-import-position
108+
from avocado.utils.deprecation import log_deprecation
109+
110+
log_deprecation.warning("wait")

0 commit comments

Comments
 (0)