diff options
author | Chris Johns <chrisj@rtems.org> | 2023-11-21 10:11:13 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-11-21 15:47:17 +1100 |
commit | 75ffa6781a88d0837b07979b5358ea7882aca488 (patch) | |
tree | 401a52b3f436c0a0f330961c661ff28bd9539ee3 /rtemstoolkit | |
parent | tester/tftp: Add a session timeout (diff) | |
download | rtems-tools-75ffa6781a88d0837b07979b5358ea7882aca488.tar.bz2 |
python: Updates for Python 3.12
- Change SafeConfigParser to ConfigParser
- Fix escape sequences in strings
Updates #4968
Diffstat (limited to 'rtemstoolkit')
-rw-r--r-- | rtemstoolkit/configuration.py | 2 | ||||
-rw-r--r-- | rtemstoolkit/version.py | 2 | ||||
-rw-r--r-- | rtemstoolkit/wscript | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/rtemstoolkit/configuration.py b/rtemstoolkit/configuration.py index 1f57de4..ba38104 100644 --- a/rtemstoolkit/configuration.py +++ b/rtemstoolkit/configuration.py @@ -57,7 +57,7 @@ class configuration: else: self.config = configparser.ConfigParser() self.ini = None - self.macro_filter = re.compile('\$\{[^\}]+\}') + self.macro_filter = re.compile(r'\$\{[^\}]+\}') def __str__(self): if self.ini is None: diff --git a/rtemstoolkit/version.py b/rtemstoolkit/version.py index 56cf97f..51188bf 100644 --- a/rtemstoolkit/version.py +++ b/rtemstoolkit/version.py @@ -116,7 +116,7 @@ def _load_released_version_config(): os.path.join('..', 'VERSION'), rtems.configuration_file('rtems-version.ini')]: if path.exists(path.join(ver)): - v = configparser.SafeConfigParser() + v = configparser.ConfigParser() try: v.read(path.host(ver)) except Exception as e: diff --git a/rtemstoolkit/wscript b/rtemstoolkit/wscript index bd7254b..0a27853 100644 --- a/rtemstoolkit/wscript +++ b/rtemstoolkit/wscript @@ -168,7 +168,7 @@ def rebuild(ctx): waflib.Options.commands.extend(['clean', 'build']) def tags(ctx): - ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True) + ctx.exec_command('etags $(find . -name \\*.[sSch])', shell = True) # # Libelf module. |