Skip to content

Update token name and encoding (SUEZ change) - #21

Open
fazer666 wants to merge 1 commit into
ooii:masterfrom
fazer666:fix_token_renamed
Open

Update token name and encoding (SUEZ change)#21
fazer666 wants to merge 1 commit into
ooii:masterfrom
fazer666:fix_token_renamed

Conversation

@fazer666

Copy link
Copy Markdown

Feb 2023 : SUEZ changed token name and encoding. Changed regex accordingly

@Kelesis

Kelesis commented Feb 22, 2023

Copy link
Copy Markdown

This might not work sometimes because the token itself can contains utf-8 escaped hyphen '-' for example. So the line to get the token should be:
self._token = result.group(1).encode().decode('unicode_escape')

and before trying to read the result, it should be tested as different of None, and raise a PySuezError if not so, for the next time the token is being moved ^^'

@laurent-martin

Copy link
Copy Markdown

Note: in case this module is no more maintained, I have created this one:

https://github.com/laurent-martin/py-mon-eau

https://pypi.org/project/toutsurmoneau/

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants