Skip to content

Python warning in process_gperf.py #11961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewboie opened this issue Dec 7, 2018 · 0 comments
Closed

Python warning in process_gperf.py #11961

andrewboie opened this issue Dec 7, 2018 · 0 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@andrewboie
Copy link
Contributor

Describe the bug

 /home/nashif/Work/github/zephyr/scripts/process_gperf.py:104: FutureWarning: Possible nested set at position 12
  line = re.sub(r'lengthtable[[]key[]]', r'4', line)

To Reproduce
Steps to reproduce the behavior:

Do any build with CONFIG_USERSPACE=y and the latest Python 3.7, only started to see this when I upgraded to Fedora 29.

Expected behavior
No Python warnings.

Impact
Probably harmless but someone should take a look and at least get rid of the warning.

Screenshots or console output

Additional context
Add any other context about the problem here.

@andrewboie andrewboie added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Dec 7, 2018
andrewboie pushed a commit to andrewboie/zephyr that referenced this issue Dec 7, 2018
Python 3.7 throws a FutureWarning when it thinks it
has found a nested set in a regular expression.

We weren't actually; just trying to match some brackets.
Escape them instead. No functional difference.

Fixes: zephyrproject-rtos#11961

Signed-off-by: Andrew Boie <[email protected]>
@andrewboie andrewboie self-assigned this Dec 7, 2018
nashif pushed a commit that referenced this issue Dec 8, 2018
Python 3.7 throws a FutureWarning when it thinks it
has found a nested set in a regular expression.

We weren't actually; just trying to match some brackets.
Escape them instead. No functional difference.

Fixes: #11961

Signed-off-by: Andrew Boie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

1 participant