why was i trying to import pymysql?

This commit is contained in:
brent s 2019-08-15 04:17:54 -04:00
parent 9aadb7f90d
commit bcbf659a8a

View File

@ -22,11 +22,6 @@ import sys
import tempfile import tempfile
# TODO: virtual env? # TODO: virtual env?
from lxml import etree # A lot safer and easier to use than the stdlib xml module. from lxml import etree # A lot safer and easier to use than the stdlib xml module.
try:
import pymysql # not stdlib; "python-pymysql" in Arch's AUR
has_mysql = True
except ImportError:
has_mysql = False
try: try:
# https://www.freedesktop.org/software/systemd/python-systemd/journal.html#journalhandler-class # https://www.freedesktop.org/software/systemd/python-systemd/journal.html#journalhandler-class
from systemd import journal from systemd import journal