From 1488e54567b022d4f9421ab1c351e7a3c909a700 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 30 Apr 2014 10:46:20 +0200 Subject: [PATCH] Fix docstrings --- qutebrowser/browser/curcommand.py | 4 ++-- qutebrowser/utils/webelem.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qutebrowser/browser/curcommand.py b/qutebrowser/browser/curcommand.py index 6b3eeb7bb..06ead9e86 100644 --- a/qutebrowser/browser/curcommand.py +++ b/qutebrowser/browser/curcommand.py @@ -364,9 +364,9 @@ class CurCommandDispatcher(QObject): def on_editor_closed(self, elem, oshandle, filename, exitcode, exitstatus): - """Gets called by QProcess when the editor was closed. + """Write the editor text into the form field and clean up tempfile. - Writes the editor text into the form field. + Callback for QProcess when the editor was closed. """ logging.debug("Editor closed") if exitcode != 0 or exitstatus != QProcess.NormalExit: diff --git a/qutebrowser/utils/webelem.py b/qutebrowser/utils/webelem.py index 7847a2f3f..3aba6564b 100644 --- a/qutebrowser/utils/webelem.py +++ b/qutebrowser/utils/webelem.py @@ -75,7 +75,7 @@ def is_visible(e, frame=None): def javascript_escape(text): - """Escapes special values in strings. + """Escape values special to javascript in strings. This maybe makes them work with QWebElement::evaluateJavaScript. Maybe.