From bc01f3a7800b7bb7f84cbb24116ad7b2aee5ae2b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 22 Sep 2014 20:44:07 +0200 Subject: [PATCH] Fix spelling of temporarily --- doc/TODO | 1 - qutebrowser/utils/log.py | 2 +- qutebrowser/utils/utils.py | 6 +++--- qutebrowser/widgets/statusbar/bar.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/TODO b/doc/TODO index bff64f2fa..974471f35 100644 --- a/doc/TODO +++ b/doc/TODO @@ -132,7 +132,6 @@ style enum/namedtuple). - Config init and some persistent objects should be moved out of QApplication. - Use separate logger for config -- Fix spelling of "temporarely" - Make more stuff private - Don't keep references to parent QObjects! - Use unittest.Mock and especially unittest.patch more. diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index cfd72876a..0e225609a 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -152,7 +152,7 @@ def init_log(args): @contextlib.contextmanager def disable_qt_msghandler(): - """Contextmanager which temporarely disables the Qt message handler.""" + """Contextmanager which temporarily disables the Qt message handler.""" old_handler = qInstallMessageHandler(None) yield qInstallMessageHandler(old_handler) diff --git a/qutebrowser/utils/utils.py b/qutebrowser/utils/utils.py index 55fc012ac..b142f96f0 100644 --- a/qutebrowser/utils/utils.py +++ b/qutebrowser/utils/utils.py @@ -118,7 +118,7 @@ def safe_shlex_split(s): soon as ", ' or \ is typed, the string is invalid for shlex, because it encounters EOF while in quote/escape state. - Here we fix this error temporarely so shlex doesn't blow up, + Here we fix this error temporarily so shlex doesn't blow up, and then retry splitting again. Since shlex raises ValueError in both cases we unfortunately @@ -179,7 +179,7 @@ def get_standard_dir(typ): """ qapp = QCoreApplication.instance() orgname = qapp.organizationName() - # We need to temporarely unset the organisationname here since the + # We need to temporarily unset the organisationname here since the # webinspector wants it to be set to store its persistent data correctly, # but we don't want that to happen. qapp.setOrganizationName(None) @@ -508,7 +508,7 @@ def fake_io(write_func): @contextlib.contextmanager def disabled_excepthook(): - """Run code with the exception hook temporarely disabled.""" + """Run code with the exception hook temporarily disabled.""" old_excepthook = sys.excepthook sys.excepthook = sys.__excepthook__ yield diff --git a/qutebrowser/widgets/statusbar/bar.py b/qutebrowser/widgets/statusbar/bar.py index 38f3fc5f8..44e514d8a 100644 --- a/qutebrowser/widgets/statusbar/bar.py +++ b/qutebrowser/widgets/statusbar/bar.py @@ -332,7 +332,7 @@ class StatusBar(QWidget): log.statusbar.debug("ignoring") elif immediately: # This message is a reaction to a keypress and should be displayed - # immediately, temporarely interrupting the message queue. + # immediately, temporarily interrupting the message queue. # We display this immediately and restart the timer.to clear it and # display the rest of the queue later. log.statusbar.debug("Moving to beginning of queue")