Fix some spelling mistakes.

This commit is contained in:
Florian Bruhin 2015-06-07 01:11:16 +02:00
parent fd75f77108
commit def41e70bf
9 changed files with 10 additions and 10 deletions

View File

@ -312,7 +312,7 @@ def javascript_escape(text):
def get_child_frames(startframe): def get_child_frames(startframe):
"""Get all children recursively of a given QWebFrame. """Get all children recursively of a given QWebFrame.
Loosly based on http://blog.nextgenetics.net/?e=64 Loosely based on http://blog.nextgenetics.net/?e=64
Args: Args:
startframe: The QWebFrame to start with. startframe: The QWebFrame to start with.

View File

@ -109,7 +109,7 @@ class BrowserPage(QWebPage):
def _handle_errorpage(self, info, errpage): def _handle_errorpage(self, info, errpage):
"""Display an error page if needed. """Display an error page if needed.
Loosly based on Helpviewer/HelpBrowserWV.py from eric5 Loosely based on Helpviewer/HelpBrowserWV.py from eric5
(line 260 @ 5d937eb378dd) (line 260 @ 5d937eb378dd)
Args: Args:
@ -178,7 +178,7 @@ class BrowserPage(QWebPage):
def _handle_multiple_files(self, info, files): def _handle_multiple_files(self, info, files):
"""Handle uploading of multiple files. """Handle uploading of multiple files.
Loosly based on Helpviewer/HelpBrowserWV.py from eric5. Loosely based on Helpviewer/HelpBrowserWV.py from eric5.
Args: Args:
info: The ChooseMultipleFilesExtensionOption instance. info: The ChooseMultipleFilesExtensionOption instance.

View File

@ -163,7 +163,7 @@ class WebView(QWebView):
return utils.get_repr(self, tab_id=self.tab_id, url=url) return utils.get_repr(self, tab_id=self.tab_id, url=url)
def __del__(self): def __del__(self):
# Explicitely releasing the page here seems to prevent some segfaults # Explicitly releasing the page here seems to prevent some segfaults
# when quitting. # when quitting.
# Copied from: # Copied from:
# https://code.google.com/p/webscraping/source/browse/webkit.py#325 # https://code.google.com/p/webscraping/source/browse/webkit.py#325

View File

@ -464,7 +464,7 @@ def data(readonly=False):
('last-close', ('last-close',
SettingValue(typ.LastClose(), 'ignore'), SettingValue(typ.LastClose(), 'ignore'),
"Behaviour when the last tab is closed."), "Behavior when the last tab is closed."),
('hide-auto', ('hide-auto',
SettingValue(typ.Bool(), 'false'), SettingValue(typ.Bool(), 'false'),

View File

@ -1312,7 +1312,7 @@ class SelectOnRemove(BaseType):
class LastClose(BaseType): class LastClose(BaseType):
"""Behaviour when the last tab is closed.""" """Behavior when the last tab is closed."""
valid_values = ValidValues(('ignore', "Don't do anything."), valid_values = ValidValues(('ignore', "Don't do anything."),
('blank', "Load a blank page."), ('blank', "Load a blank page."),

View File

@ -195,7 +195,7 @@ class BaseKeyParser(QObject):
self._keystring = '' self._keystring = ''
self.execute(binding, self.Type.chain, count) self.execute(binding, self.Type.chain, count)
elif match == self.Match.ambiguous: elif match == self.Match.ambiguous:
self._debug_log("Ambigious match for '{}'.".format( self._debug_log("Ambiguous match for '{}'.".format(
self._keystring)) self._keystring))
self._handle_ambiguous_match(binding, count) self._handle_ambiguous_match(binding, count)
elif match == self.Match.partial: elif match == self.Match.partial:

View File

@ -332,7 +332,7 @@ class TabbedBrowser(tabwidget.TabWidget):
the default settings we handle it like Chromium does: the default settings we handle it like Chromium does:
- Tabs from clicked links etc. are to the right of - Tabs from clicked links etc. are to the right of
the current. the current.
- Explicitely opened tabs are at the very right. - Explicitly opened tabs are at the very right.
Return: Return:
The opened WebView instance. The opened WebView instance.

View File

@ -377,7 +377,7 @@ class RAMHandler(logging.Handler):
"""Logging handler which keeps the messages in a deque in RAM. """Logging handler which keeps the messages in a deque in RAM.
Loosly based on logging.BufferingHandler which is unsuitable because it Loosely based on logging.BufferingHandler which is unsuitable because it
uses a simple list rather than a deque. uses a simple list rather than a deque.
Attributes: Attributes:

View File

@ -73,7 +73,7 @@ class NeighborList(collections.abc.Sequence):
Args: Args:
items: The list of items to iterate in. items: The list of items to iterate in.
_default: The initially selected value. _default: The initially selected value.
_mode: Behaviour when the first/last item is reached. _mode: Behavior when the first/last item is reached.
Modes.block: Stay on the selected item Modes.block: Stay on the selected item
Modes.wrap: Wrap around to the other end Modes.wrap: Wrap around to the other end
Modes.exception: Raise an IndexError. Modes.exception: Raise an IndexError.