Mercurial > p > roundup > code
comparison roundup/rest.py @ 8319:5e6ff4e9cacb
build: issue2551397: remove support for python 3.6
One last file with a 3.6 reference.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 11 May 2025 20:31:16 -0400 |
| parents | e3099f18a395 |
| children | 224ccb8b49ca |
comparison
equal
deleted
inserted
replaced
| 8318:9369e0958312 | 8319:5e6ff4e9cacb |
|---|---|
| 36 from roundup.rate_limit import Gcra, RateLimit | 36 from roundup.rate_limit import Gcra, RateLimit |
| 37 | 37 |
| 38 logger = logging.getLogger('roundup.rest') | 38 logger = logging.getLogger('roundup.rest') |
| 39 | 39 |
| 40 try: | 40 try: |
| 41 # if dicttoxml2 (or dicttoxml for Python <= 3.6) | 41 # if dicttoxml2 |
| 42 # is installed in roundup directory, use it | 42 # is installed in roundup directory, use it |
| 43 from roundup.dicttoxml2 import dicttoxml | 43 from roundup.dicttoxml2 import dicttoxml |
| 44 except ImportError: | 44 except ImportError: |
| 45 try: | 45 try: |
| 46 # else look in sys.path | 46 # else look in sys.path |
