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?::
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
and WebKit in C++, with the
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.::
This issue could be caused by stale plugin files installed by `mozplugger`
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]
for more details.

View File

@ -171,7 +171,7 @@
|<<hints-opacity,opacity>>|Opacity for hints.
|<<hints-mode,mode>>|Mode to use for hints.
|<<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-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.
@ -1494,7 +1494,7 @@ Default: +pass:[asdfghjkl]+
[[hints-min-chars]]
=== min-chars
Mininum number of chars used for hint strings.
Minimum number of chars used for hint strings.
Default: +pass:[1]+

View File

@ -58,7 +58,7 @@ qApp = None
def run(args):
"""Initialize everthing and run the application."""
"""Initialize everything and run the application."""
# pylint: disable=too-many-statements
if args.version:
print(version.version(short=True))
@ -661,7 +661,7 @@ class Quitter:
if self._args.temp_basedir:
atexit.register(shutil.rmtree, self._args.basedir)
# 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)
# Now we can hopefully quit without segfaults
log.destroy.debug("Deferring QApplication::exit...")

View File

@ -55,7 +55,7 @@ class SignalFilter(QObject):
tab: The WebView to create filters for.
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)

View File

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

View File

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

View File

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

View File

@ -124,7 +124,7 @@ class Completer(QObject):
self.update_completion()
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',
window=self._win_id)
return completion.model()
@ -254,7 +254,7 @@ class Completer(QObject):
Args:
selected: New selection.
_delected: Previous selection.
_deselected: Previous selection.
"""
indexes = selected.indexes()
if not indexes:

View File

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

View File

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

View File

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

View File

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

View File

@ -309,7 +309,7 @@ class TabBar(QTabBar):
def refresh(self):
"""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.
self.setIconSize(self.iconSize())

View File

@ -84,6 +84,6 @@ class PyPIVersionClient(QObject):
try:
self.success.emit(json_data['info']['version'])
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))
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/>"
"Unfortunately, this crash occurred in Qt (the library "
"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(
qVersion()))
return QMessageBox(QMessageBox.Critical, title, text, QMessageBox.Ok)
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')
info = []
for key, value in os.environ.items():

View File

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

View File

@ -143,7 +143,7 @@ class IPCServer(QObject):
_socketname: The socketname to use.
_socketopts_ok: Set if using setSocketOptions is working with this
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:
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):
"""Convienience function to display an error message in the statusbar.
"""Convenience function to display an error message in the statusbar.
Args:
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):
"""Convienience function to display a warning message in the statusbar.
"""Convenience function to display a warning message in the statusbar.
Args:
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):
"""Convienience function to display an info message in the statusbar.
"""Convenience function to display an info message in the statusbar.
Args:
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):
"""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)

View File

@ -89,7 +89,7 @@ def check_overflow(arg, ctype, fatal=True):
Args:
arg: The argument to check
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
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.
arg: The answer to the question.
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.
answered_yes: Convienience signal emitted when a yesno question was
answered_yes: Convenience signal emitted when a yesno question was
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.
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',
'[Aa]uxillary', '[Aa]ccidentaly', '[Aa]mbigious', '[Ll]oosly',
'[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 |= {'[Ww]ebelements', '[Mm]ouseevent', '[Kk]eysequence',

View File

@ -42,7 +42,7 @@ def test_elided_text(qtbot, elidemode, check):
qtbot: pytestqt.plugin.QtBot fixture
elidemode: parametrized elide mode
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)
qtbot.add_widget(label)

View File

@ -33,7 +33,7 @@ class HTTPGetStub(httpclient.HTTPClient):
Attributes:
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):

View File

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

View File

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

View File

@ -62,7 +62,7 @@ def iter_good_values():
def iter_bad_values():
"""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.
"""
for ctype, values in BAD_VALUES.items():

View File

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

View File

@ -39,7 +39,7 @@ class FakeDNS:
Attributes:
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
when fromname_mock is called.
"""

View File

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