Fix some splelling mistakes.

This commit is contained in:
Florian Bruhin 2015-10-04 15:41:42 +02:00
parent 0b4dc12869
commit d229e90724
29 changed files with 44 additions and 41 deletions

View File

@ -60,7 +60,7 @@ Why Python?::
But isn't Python too slow for a browser?:: But isn't Python too slow for a browser?::
http://www.infoworld.com/d/application-development/van-rossum-python-not-too-slow-188715[No.] http://www.infoworld.com/d/application-development/van-rossum-python-not-too-slow-188715[No.]
I believe efficency while coding is a lot more important than efficency I believe efficiency while coding is a lot more important than efficiency
while running. Also, most of the heavy lifting of qutebrowser is done by Qt while running. Also, most of the heavy lifting of qutebrowser is done by Qt
and WebKit in C++, with the and WebKit in C++, with the
https://wiki.python.org/moin/GlobalInterpreterLock[GIL] released. https://wiki.python.org/moin/GlobalInterpreterLock[GIL] released.
@ -103,7 +103,7 @@ Unable to view flash content.::
Experiencing freezing on sites like duckduckgo and youtube.:: Experiencing freezing on sites like duckduckgo and youtube.::
This issue could be caused by stale plugin files installed by `mozplugger` This issue could be caused by stale plugin files installed by `mozplugger`
if mozplugger was subsequently removed. if mozplugger was subsequently removed.
Try exiting qutebroser and removing `~/.mozilla/plugins/mozplugger*.so`. Try exiting qutebrowser and removing `~/.mozilla/plugins/mozplugger*.so`.
See https://github.com/The-Compiler/qutebrowser/issues/357[Issue #357] See https://github.com/The-Compiler/qutebrowser/issues/357[Issue #357]
for more details. for more details.

View File

@ -171,7 +171,7 @@
|<<hints-opacity,opacity>>|Opacity for hints. |<<hints-opacity,opacity>>|Opacity for hints.
|<<hints-mode,mode>>|Mode to use for hints. |<<hints-mode,mode>>|Mode to use for hints.
|<<hints-chars,chars>>|Chars used for hint strings. |<<hints-chars,chars>>|Chars used for hint strings.
|<<hints-min-chars,min-chars>>|Mininum number of chars used for hint strings. |<<hints-min-chars,min-chars>>|Minimum number of chars used for hint strings.
|<<hints-scatter,scatter>>|Whether to scatter hint key chains (like Vimium) or not (like dwb). |<<hints-scatter,scatter>>|Whether to scatter hint key chains (like Vimium) or not (like dwb).
|<<hints-uppercase,uppercase>>|Make chars in hint strings uppercase. |<<hints-uppercase,uppercase>>|Make chars in hint strings uppercase.
|<<hints-auto-follow,auto-follow>>|Whether to auto-follow a hint if there's only one left. |<<hints-auto-follow,auto-follow>>|Whether to auto-follow a hint if there's only one left.
@ -1494,7 +1494,7 @@ Default: +pass:[asdfghjkl]+
[[hints-min-chars]] [[hints-min-chars]]
=== min-chars === min-chars
Mininum number of chars used for hint strings. Minimum number of chars used for hint strings.
Default: +pass:[1]+ Default: +pass:[1]+

View File

@ -58,7 +58,7 @@ qApp = None
def run(args): def run(args):
"""Initialize everthing and run the application.""" """Initialize everything and run the application."""
# pylint: disable=too-many-statements # pylint: disable=too-many-statements
if args.version: if args.version:
print(version.version(short=True)) print(version.version(short=True))
@ -661,7 +661,7 @@ class Quitter:
if self._args.temp_basedir: if self._args.temp_basedir:
atexit.register(shutil.rmtree, self._args.basedir) atexit.register(shutil.rmtree, self._args.basedir)
# If we don't kill our custom handler here we might get segfaults # If we don't kill our custom handler here we might get segfaults
log.destroy.debug("Deactiving message handler...") log.destroy.debug("Deactivating message handler...")
qInstallMessageHandler(None) qInstallMessageHandler(None)
# Now we can hopefully quit without segfaults # Now we can hopefully quit without segfaults
log.destroy.debug("Deferring QApplication::exit...") log.destroy.debug("Deferring QApplication::exit...")

View File

@ -55,7 +55,7 @@ class SignalFilter(QObject):
tab: The WebView to create filters for. tab: The WebView to create filters for.
Return: Return:
A partial functon calling _filter_signals with a signal. A partial function calling _filter_signals with a signal.
""" """
return functools.partial(self._filter_signals, signal, tab) return functools.partial(self._filter_signals, signal, tab)

View File

@ -138,7 +138,7 @@ def serialize(items):
Return: Return:
A (stream, data, user_data) tuple. A (stream, data, user_data) tuple.
stream: The reseted QDataStream. stream: The reset QDataStream.
data: The QByteArray with the raw data. data: The QByteArray with the raw data.
user_data: A list with each item's user data. user_data: A list with each item's user data.

View File

@ -38,7 +38,7 @@ class ArgumentParserError(Exception):
class ArgumentParserExit(Exception): class ArgumentParserExit(Exception):
"""Exception raised when the argument parser exitted. """Exception raised when the argument parser exited.
Attributes: Attributes:
status: The exit status. status: The exit status.

View File

@ -172,7 +172,7 @@ class CommandRunner(QObject):
keep: Whether to keep special chars and whitespace keep: Whether to keep special chars and whitespace
Return: Return:
A list containing the splitted strings. A list containing the split strings.
""" """
if not argstr: if not argstr:
return [] return []

View File

@ -124,7 +124,7 @@ class Completer(QObject):
self.update_completion() self.update_completion()
def _model(self): def _model(self):
"""Convienience method to get the current completion model.""" """Convenience method to get the current completion model."""
completion = objreg.get('completion', scope='window', completion = objreg.get('completion', scope='window',
window=self._win_id) window=self._win_id)
return completion.model() return completion.model()
@ -254,7 +254,7 @@ class Completer(QObject):
Args: Args:
selected: New selection. selected: New selection.
_delected: Previous selection. _deselected: Previous selection.
""" """
indexes = selected.indexes() indexes = selected.indexes()
if not indexes: if not indexes:

View File

@ -773,7 +773,7 @@ def data(readonly=False):
('min-chars', ('min-chars',
SettingValue(typ.Int(minval=1), '1'), SettingValue(typ.Int(minval=1), '1'),
"Mininum number of chars used for hint strings."), "Minimum number of chars used for hint strings."),
('scatter', ('scatter',
SettingValue(typ.Bool(), 'true'), SettingValue(typ.Bool(), 'true'),

View File

@ -573,8 +573,8 @@ class Command(BaseType):
self._basic_validation(value) self._basic_validation(value)
if not value: if not value:
return return
splitted = value.split() split = value.split()
if not splitted or splitted[0] not in cmdutils.cmd_dict: if not split or split[0] not in cmdutils.cmd_dict:
raise configexc.ValidationError(value, "must be a valid command!") raise configexc.ValidationError(value, "must be a valid command!")
def complete(self): def complete(self):

View File

@ -81,7 +81,7 @@ class KeyConfigParser(QObject):
Args: Args:
configdir: The directory to save the configs in. configdir: The directory to save the configs in.
fname: The filename of the config. fname: The filename of the config.
relaxed: If given, unknwon commands are ignored. relaxed: If given, unknown commands are ignored.
""" """
super().__init__(parent) super().__init__(parent)
self.is_dirty = False self.is_dirty = False

View File

@ -289,7 +289,7 @@ class Prompter(QObject):
@pyqtSlot(usertypes.Question, bool) @pyqtSlot(usertypes.Question, bool)
def ask_question(self, question, blocking): def ask_question(self, question, blocking):
"""Dispkay a question in the statusbar. """Display a question in the statusbar.
Args: Args:
question: The Question object to ask. question: The Question object to ask.

View File

@ -309,7 +309,7 @@ class TabBar(QTabBar):
def refresh(self): def refresh(self):
"""Properly repaint the tab bar and relayout tabs.""" """Properly repaint the tab bar and relayout tabs."""
# This is a horrible hack, but we need to do this so the underlaying Qt # This is a horrible hack, but we need to do this so the underlying Qt
# code sets layoutDirty so it actually relayouts the tabs. # code sets layoutDirty so it actually relayouts the tabs.
self.setIconSize(self.iconSize()) self.setIconSize(self.iconSize())

View File

@ -84,6 +84,6 @@ class PyPIVersionClient(QObject):
try: try:
self.success.emit(json_data['info']['version']) self.success.emit(json_data['info']['version'])
except KeyError as e: except KeyError as e:
self.error.emit("Malformed data recieved in reply " self.error.emit("Malformed data received in reply "
"({!r} not found)!".format(e)) "({!r} not found)!".format(e))
return return

View File

@ -87,14 +87,14 @@ def get_fatal_crash_dialog(debug, data):
text = ("<b>qutebrowser was restarted after a fatal crash!</b><br/>" text = ("<b>qutebrowser was restarted after a fatal crash!</b><br/>"
"Unfortunately, this crash occurred in Qt (the library " "Unfortunately, this crash occurred in Qt (the library "
"qutebrowser uses), and your version ({}) is outdated - " "qutebrowser uses), and your version ({}) is outdated - "
"Qt 5.4 or later is recommended. Unfortuntately Debian and " "Qt 5.4 or later is recommended. Unfortunately Debian and "
"Ubuntu don't ship a newer version (yet?)...".format( "Ubuntu don't ship a newer version (yet?)...".format(
qVersion())) qVersion()))
return QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok) return QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok)
def _get_environment_vars(): def _get_environment_vars():
"""Gather enveronment variables for the crash info.""" """Gather environment variables for the crash info."""
masks = ('DESKTOP_SESSION', 'DE', 'QT_*', 'PYTHON*', 'LC_*', 'LANG') masks = ('DESKTOP_SESSION', 'DE', 'QT_*', 'PYTHON*', 'LC_*', 'LANG')
info = [] info = []
for key, value in os.environ.items(): for key, value in os.environ.items():

View File

@ -40,7 +40,7 @@ class HTTPClient(QObject):
Signals: Signals:
success: Emitted when the operation succeeded. success: Emitted when the operation succeeded.
arg: The recieved data. arg: The received data.
error: Emitted when the request failed. error: Emitted when the request failed.
arg: The error message, as string. arg: The error message, as string.
""" """

View File

@ -143,7 +143,7 @@ class IPCServer(QObject):
_socketname: The socketname to use. _socketname: The socketname to use.
_socketopts_ok: Set if using setSocketOptions is working with this _socketopts_ok: Set if using setSocketOptions is working with this
OS/Qt version. OS/Qt version.
_atime_timer: Timer to update the atime of the socket regularily. _atime_timer: Timer to update the atime of the socket regularly.
Signals: Signals:
got_args: Emitted when there was an IPC connection and arguments were got_args: Emitted when there was an IPC connection and arguments were

View File

@ -112,7 +112,7 @@ def on_focus_changed():
def error(win_id, message, immediately=False): def error(win_id, message, immediately=False):
"""Convienience function to display an error message in the statusbar. """Convenience function to display an error message in the statusbar.
Args: Args:
win_id: The ID of the window which is calling this function. win_id: The ID of the window which is calling this function.
@ -122,7 +122,7 @@ def error(win_id, message, immediately=False):
def warning(win_id, message, immediately=False): def warning(win_id, message, immediately=False):
"""Convienience function to display a warning message in the statusbar. """Convenience function to display a warning message in the statusbar.
Args: Args:
win_id: The ID of the window which is calling this function. win_id: The ID of the window which is calling this function.
@ -132,7 +132,7 @@ def warning(win_id, message, immediately=False):
def info(win_id, message, immediately=True): def info(win_id, message, immediately=True):
"""Convienience function to display an info message in the statusbar. """Convenience function to display an info message in the statusbar.
Args: Args:
win_id: The ID of the window which is calling this function. win_id: The ID of the window which is calling this function.
@ -142,7 +142,7 @@ def info(win_id, message, immediately=True):
def set_cmd_text(win_id, txt): def set_cmd_text(win_id, txt):
"""Convienience function to Set the statusbar command line to a text.""" """Convenience function to Set the statusbar command line to a text."""
_wrapper(win_id, 'set_cmd_text', txt) _wrapper(win_id, 'set_cmd_text', txt)

View File

@ -89,7 +89,7 @@ def check_overflow(arg, ctype, fatal=True):
Args: Args:
arg: The argument to check arg: The argument to check
ctype: The C/Qt type to check as a string. ctype: The C/Qt type to check as a string.
fatal: Wether to raise exceptions (True) or truncate values (False) fatal: Whether to raise exceptions (True) or truncate values (False)
Return Return
The truncated argument if fatal=False The truncated argument if fatal=False

View File

@ -271,11 +271,11 @@ class Question(QObject):
answered: Emitted when the question has been answered by the user. answered: Emitted when the question has been answered by the user.
arg: The answer to the question. arg: The answer to the question.
cancelled: Emitted when the question has been cancelled by the user. cancelled: Emitted when the question has been cancelled by the user.
aborted: Emitted when the question was aborted programatically. aborted: Emitted when the question was aborted programmatically.
In this case, cancelled is not emitted. In this case, cancelled is not emitted.
answered_yes: Convienience signal emitted when a yesno question was answered_yes: Convenience signal emitted when a yesno question was
answered with yes. answered with yes.
answered_no: Convienience signal emitted when a yesno question was answered_no: Convenience signal emitted when a yesno question was
answered with no. answered with no.
completed: Emitted when the question was completed in any way. completed: Emitted when the question was completed in any way.
""" """

View File

@ -84,7 +84,10 @@ def check_spelling():
'[Oo]ccur[^r .]', '[Ss]eperator', '[Ee]xplicitely', '[Rr]esetted', '[Oo]ccur[^r .]', '[Ss]eperator', '[Ee]xplicitely', '[Rr]esetted',
'[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly', '[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly',
'[Ii]nitialis', '[Cc]onvienence', '[Ss]imiliar', '[Uu]ncommited', '[Ii]nitialis', '[Cc]onvienence', '[Ss]imiliar', '[Uu]ncommited',
'[Rr]eproducable', '[Aa]n [Uu]ser'} '[Rr]eproducable', '[Aa]n [Uu]ser', '[Cc]onvienience',
'[Ww]ether', '[Pp]rogramatically', '[Ss]plitted', '[Ee]xitted',
'[Mm]ininum', '[Rr]esett?ed', '[Rr]ecieved', '[Rr]egularily',
'[Uu]nderlaying', '[Ii]nexistant', '[Ee]lipsis'}
# Words which look better when splitted, but might need some fine tuning. # Words which look better when splitted, but might need some fine tuning.
words |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence', words |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence',

View File

@ -42,7 +42,7 @@ def test_elided_text(qtbot, elidemode, check):
qtbot: pytestqt.plugin.QtBot fixture qtbot: pytestqt.plugin.QtBot fixture
elidemode: parametrized elide mode elidemode: parametrized elide mode
check: function that receives the elided text and must return True check: function that receives the elided text and must return True
if the elipsis is placed correctly according to elidemode. if the ellipsis is placed correctly according to elidemode.
""" """
label = TextBase(elidemode=elidemode) label = TextBase(elidemode=elidemode)
qtbot.add_widget(label) qtbot.add_widget(label)

View File

@ -33,7 +33,7 @@ class HTTPGetStub(httpclient.HTTPClient):
Attributes: Attributes:
url: the last url used by get() url: the last url used by get()
_success: Wether get() will emit a success signal. _success: Whether get() will emit a success signal.
""" """
def __init__(self, success=True, json=None): def __init__(self, success=True, json=None):

View File

@ -862,8 +862,8 @@ def test_long_username(monkeypatch):
server.shutdown() server.shutdown()
def test_connect_inexistant(qlocalsocket): def test_connect_inexistent(qlocalsocket):
"""Make sure connecting to an inexistant server fails immediately. """Make sure connecting to an inexistent server fails immediately.
If this test fails, our connection logic checking for the old naming scheme If this test fails, our connection logic checking for the old naming scheme
would not work properly. would not work properly.

View File

@ -97,7 +97,7 @@ class TestExists:
assert man.exists(name) assert man.exists(name)
@pytest.mark.parametrize('absolute', [True, False]) @pytest.mark.parametrize('absolute', [True, False])
def test_inexistant(self, tmpdir, absolute): def test_inexistent(self, tmpdir, absolute):
man = sessions.SessionManager(str(tmpdir)) man = sessions.SessionManager(str(tmpdir))
if absolute: if absolute:

View File

@ -62,7 +62,7 @@ def iter_good_values():
def iter_bad_values(): def iter_bad_values():
"""Yield pairs of "bad" (C type, value, repl) tuples. """Yield pairs of "bad" (C type, value, repl) tuples.
Theose should not pass overflow checking. The third value is the value they These should not pass overflow checking. The third value is the value they
should be replaced with if overflow checking should not be fatal. should be replaced with if overflow checking should not be fatal.
""" """
for ctype, values in BAD_VALUES.items(): for ctype, values in BAD_VALUES.items():

View File

@ -272,7 +272,7 @@ class TestInitCacheDirTag:
class TestCreatingDir: class TestCreatingDir:
"""Make sure inexistant directories are created properly.""" """Make sure inexistent directories are created properly."""
DIR_TYPES = ['config', 'data', 'cache', 'download', 'runtime'] DIR_TYPES = ['config', 'data', 'cache', 'download', 'runtime']

View File

@ -39,7 +39,7 @@ class FakeDNS:
Attributes: Attributes:
used: Whether the fake DNS server was used since it was used: Whether the fake DNS server was used since it was
created/reseted. created/reset.
answer: What to return for the given host(True/False). Needs to be set answer: What to return for the given host(True/False). Needs to be set
when fromname_mock is called. when fromname_mock is called.
""" """

View File

@ -543,7 +543,7 @@ class FakeQSslSocket:
def sslLibraryVersionString(self): def sslLibraryVersionString(self):
"""Fake for QSslSocket::sslLibraryVersionString().""" """Fake for QSslSocket::sslLibraryVersionString()."""
if self._version is None: if self._version is None:
raise AssertionError("Got valled with version None!") raise AssertionError("Got called with version None!")
return self._version return self._version