summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdulla Ibrahim <abood91@users.noreply.github.com>2020-12-07 16:33:34 +0200
committerGitHub <noreply@github.com>2020-12-07 16:33:34 +0200
commit5add47547331d2b2a8d06cf8ce844f25d47c1b42 (patch)
tree9d96a556414ab7096196a0dccf2e1485f02759b6
parent6ea45ad0e6fd12d44f8f29707f3de67c75ec2654 (diff)
downloadapscheduler-5add47547331d2b2a8d06cf8ce844f25d47c1b42.tar.gz
Fixed flake8 errors (#480)
-rw-r--r--README.rst2
-rw-r--r--apscheduler/schedulers/qt.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index 7c4bad7..0f4132a 100644
--- a/README.rst
+++ b/README.rst
@@ -42,7 +42,7 @@ APScheduler also integrates with several common Python frameworks, like:
* `Twisted <http://twistedmatrix.com/>`_
* `Qt <http://qt-project.org/>`_ (using either
`PyQt <http://www.riverbankcomputing.com/software/pyqt/intro>`_ ,
- `PySide2 <https://wiki.qt.io/Qt_for_Python>`_)_ or
+ `PySide2 <https://wiki.qt.io/Qt_for_Python>`_ or
`PySide <http://qt-project.org/wiki/PySide>`_)
.. [#f1] The cutoff period for this is also configurable.
diff --git a/apscheduler/schedulers/qt.py b/apscheduler/schedulers/qt.py
index 26ee665..dda77d7 100644
--- a/apscheduler/schedulers/qt.py
+++ b/apscheduler/schedulers/qt.py
@@ -12,9 +12,10 @@ except (ImportError, RuntimeError): # pragma: nocover
from PySide2.QtCore import QObject, QTimer # noqa
except ImportError:
try:
- from PySide.QtCore import QObject, QTimer # noPySide2
+ from PySide.QtCore import QObject, QTimer # noqa
except ImportError:
- raise ImportError('QtScheduler requires either PyQt5, PyQt4, PySide2 or PySide installed')
+ raise ImportError('QtScheduler requires either PyQt5, PyQt4, PySide2 '
+ 'or PySide installed')
class QtScheduler(BaseScheduler):