This replaces a bunch of repeated string concats with a single string
concat and string interpolation. It also does a little bit of type
hinting as I needed to see what was used where
EDMC.py would break due to an import chain that ends up in theme. Theme
does a whole bunch of work to setup our GUI for EDMarketConnector.py,
but it does this on any import, which will fail spectacularly if there
is either no DISPLAY var set or no X11 libs available on our machine at
all (as a sidenote this means it probably also breaks on a wholly
wayland install).
This fixes the issue by adding a check for an environment variable on
import of theme. This can and WILL break if the env var is set and
EDMarketConnector.py is used, but if you do that its your own fault.
* I neglected to `import re` when I changed the Journal file name check.
* `map` isn't comparable in Python 3.7, need to `list()` it as well.
* Just print the full `appversion`. The old code was assuming that none of
A, B, C, D in A.B.C.D would be two or more digits.
close#566
* I neglected to `import re` when I changed the Journal file name check.
* `map` isn't comparable in Python 3.7, need to `list()` it as well.
* Just print the full `appversion`. The old code was assuming that none of
A, B, C, D in A.B.C.D would be two or more digits.
close#566
Bare except clauses are a fantastic way to find your HTTP requests
eating your ^C. I replaced all bare excepts with Exception if I could
not find a list of exceptions that could be thrown.
Modulo formatting is py2 (and C printf) style, its arcane and incredibly
hard to read for large formats.
I used keyed .formats where there were more than a few format specifiers
This adds newlines after blocks and in other logical places to assist
with reading the code. Additionally, comments that were too long to
remain inline within a 120 character limit have been moved above the
line they reference.
I removed most of the overly complex oneliners for equivalent multi-line
constructs. The code behaviour should remain the same.
Otherwise mostly reformatting happened here, spaces after commas, that
sort of thing.
It's been a few weeks, anyone who was going to see it in the critical
time frame either has or hasn't now.
Leave the pointer to Discord at the top though.