Merge pull request #1456 from GuilhermeHideki/patch-1

Some typos fixes
This commit is contained in:
Tom Jaspers 2015-05-10 22:31:35 +02:00
commit 7fb1914baf
7 changed files with 11 additions and 11 deletions

View file

@ -382,7 +382,7 @@ def tag_album(items, search_artist=None, search_album=None,
search. This can be customized by setting the parameters. The
`mapping` field of the album has the matched `items` as keys.
The recommendation is calculated from the match qualitiy of the
The recommendation is calculated from the match quality of the
candidates.
"""
# Get current metadata.

View file

@ -34,7 +34,7 @@ from .query import MatchQuery, NullSort, TrueQuery
class FormattedMapping(collections.Mapping):
"""A `dict`-like formatted view of a model.
The accessor `mapping[key]` returns the formated version of
The accessor `mapping[key]` returns the formatted version of
`model[key]` as a unicode string.
If `for_path` is true, all path separators in the formatted values

View file

@ -368,7 +368,7 @@ class CollectionQuery(Query):
def __hash__(self):
"""Since subqueries are mutable, this object should not be hashable.
However and for conveniencies purposes, it can be hashed.
However and for conveniences purposes, it can be hashed.
"""
return reduce(mul, map(hash, self.subqueries), 1)

View file

@ -96,7 +96,7 @@ class Type(object):
http://www.sqlite.org/datatype3.html
https://docs.python.org/2/library/sqlite3.html#sqlite-and-python-types
Flexible fields have the type afinity `TEXT`. This means the
Flexible fields have the type affinity `TEXT`. This means the
`sql_value` is either a `buffer` or a `unicode` object` and the
method must handle these in addition.
"""

View file

@ -1243,7 +1243,7 @@ def user_query(session, task):
The coroutine accepts an ImportTask objects. It uses the
session's `choose_match` method to determine the `action` for
this task. Depending on the action additional stages are exectuted
this task. Depending on the action additional stages are executed
and the processed task is yielded.
It emits the ``import_task_choice`` event for plugins. Plugins have

View file

@ -110,7 +110,7 @@ class PathQuery(dbcore.FieldQuery):
class DateType(types.Float):
# TODO representation should be `datetime` object
# TODO distinguish beetween date and time types
# TODO distinguish between date and time types
query = dbcore.query.DateQuery
def format(self, value):
@ -550,7 +550,7 @@ class Item(LibModel):
All fields in `_media_fields` are written to disk according to
the values on this object.
`path` is the path of the mediafile to wirte the data to. It
`path` is the path of the mediafile to write the data to. It
defaults to the item's path.
`tags` is a dictionary of additional metadata the should be
@ -1300,7 +1300,7 @@ class DefaultTemplateFunctions(object):
_prefix = b'tmpl_'
def __init__(self, item=None, lib=None):
"""Paramaterize the functions. If `item` or `lib` is None, then
"""Parametrize the functions. If `item` or `lib` is None, then
some functions (namely, ``aunique``) will always evaluate to the
empty string.
"""

View file

@ -315,12 +315,12 @@ class ImageType(enum.Enum):
class Image(object):
"""Strucuture representing image data and metadata that can be
"""Structure representing image data and metadata that can be
stored and retrieved from tags.
The structure has four properties.
* ``data`` The binary data of the image
* ``desc`` An optional descritpion of the image
* ``desc`` An optional description of the image
* ``type`` An instance of `ImageType` indicating the kind of image
* ``mime_type`` Read-only property that contains the mime type of
the binary data
@ -812,7 +812,7 @@ class MP3ImageStorageStyle(ListStorageStyle, MP3StorageStyle):
The `get_list` method inherited from ``ListStorageStyle`` returns a
list of ``Image``s. Similarly, the `set_list` method accepts a
list of ``Image``s as its ``values`` arguemnt.
list of ``Image``s as its ``values`` argument.
"""
def __init__(self):
super(MP3ImageStorageStyle, self).__init__(key='APIC')