HomeLubuntu

Multiple changes, cleanup, etc.

Authored by teward on Sat, Nov 3, 2:59 PM.

Description

Multiple changes, cleanup, etc.

  • Missing .gitignore. Add it.
  • Missing requirements.txt, required. Added.
  • lugito.py:
    • Missing http.client, import http isn't enough for that. Import it.
    • Spaces around concatenation + and such. Spaces between defs. PEP8 style.
    • Simplify if and logicals. Simplify loops.
    • Stop using deprecated commands per deprecation warnings.
    • Don't shadow other higher-up inherited variables such as 'hash'.
    • Declare variables that are 'always' referred to, to avoid problems.
    • Use regex instead of re, per Python 3 API recommendations to use 'regex' instead of 're'.

Details

Committed
tsimonq2Sat, Nov 3, 2:59 PM
Pushed
tsimonq2Sat, Nov 3, 2:59 PM
Parents
rLUGITO69b8a5346295: Only sleep for a fifth of a second, no more.
Branches
Unknown
Tags
Unknown
References
HEAD -> master