mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
CI - Python deprecations (#9242)
py3.13 - https://docs.python.org/3/library/re.html#re.sub > Deprecated since version 3.13: Passing count and flags as positional arguments is deprecated. In future Python versions they will be keyword-only parameters. py3.12 - https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extraction_filter > If extraction_filter is None (the default), calling an extraction method without a filter argument will raise a DeprecationWarning, and fall back to the fully_trusted filter, whose dangerous behavior matches previous versions of Python.
This commit is contained in:
@ -1877,7 +1877,7 @@ def package ():
|
||||
substitution += ',\n'.join(board_items)
|
||||
substitution += '\n ],'
|
||||
|
||||
newfilestr = re.sub(r'"boards":[^\]]*\],', substitution, filestr, re.MULTILINE)
|
||||
newfilestr = re.sub(r'"boards":[^\]]*\],', substitution, filestr, flags=re.MULTILINE)
|
||||
|
||||
# To get consistent indent/formatting read the JSON and write it out programmatically
|
||||
if packagegen:
|
||||
|
Reference in New Issue
Block a user