diff options
author | Alban Gruin | 2019-08-30 14:00:11 +0200 |
---|---|---|
committer | Alban Gruin | 2019-09-01 13:28:32 +0200 |
commit | d1369ea3654b56e6a91335bd108035cd5eecbc76 (patch) | |
tree | 710d0963b35f555a77a9d711431e2ffa7ff50d88 /management/parsers/ups2018.py | |
parent | 683409424325e7048c802960e81585320904fac1 (diff) |
ups2018: correction d’une erreur de syntaxe avec Python 3.7
`async' est devenu un mot-clef avec Python 3.7. Or, un paramètre est
appelé de cette manière dans le parseur UPS2018. Ceci le renome en
`asynchronous' pour corriger ce problème
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'management/parsers/ups2018.py')
-rw-r--r-- | management/parsers/ups2018.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/management/parsers/ups2018.py b/management/parsers/ups2018.py index 0d6d798..ad8322c 100644 --- a/management/parsers/ups2018.py +++ b/management/parsers/ups2018.py @@ -221,10 +221,10 @@ class Parser(AbstractParser): responses = yield from asyncio.gather(*futures) return responses - def get_source_from_months(self, async=True): + def get_source_from_months(self, asynchronous=True): events = [] - if async: + if asynchronous: loop = asyncio.get_event_loop() events = loop.run_until_complete(self.get_months_async()) else: |