Skip to content
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

Deprecation warning GfsPreparationFilter #388

Closed
justb4 opened this issue Aug 11, 2024 · 1 comment
Closed

Deprecation warning GfsPreparationFilter #388

justb4 opened this issue Aug 11, 2024 · 1 comment
Assignees
Milestone

Comments

@justb4
Copy link
Contributor

justb4 commented Aug 11, 2024

Zelfde soort issue als #387. In gfspreparationfilter.py L169:

Warning:

/nlx/stetlcomponents/gfspreparationfilter.py:169: SyntaxWarning: invalid escape sequence '\w'
  pattern = re.compile(b'Layer name: (\w+:)?(?P<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)

Dus
re.compile(b'Layer name: (\w+:)?(?P<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)

moet worden

re.compile(r'Layer name: (\w+:)?(?P<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)

@justb4 justb4 added this to the Versie 1.5.6 milestone Aug 11, 2024
@justb4 justb4 self-assigned this Aug 11, 2024
@justb4
Copy link
Contributor Author

justb4 commented Aug 11, 2024

hmm moet zijn:
re.compile(rb'Layer name: (\w+:)?(?P<elemtype>\w+).*?Feature Count: (?P<featurecount>[0-9]+)', re.S)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant