Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pymaven/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def cache(self, res, method, uri, query_params=None):

:param str method: HTTP method
:param str uri: location to requests
:param dict query_params: query paramaters
:param dict query_params: query parameters
:param requests.Response res: a request response to cache
:return: the cached response
"""
Expand Down Expand Up @@ -181,7 +181,7 @@ def find_artifacts(self, coordinate):
return sorted(artifacts, reverse=True)

def get_metadata(self, coordinate):
"""Return the metadata associated with the coorindates
"""Return the metadata associated with the coordinates

:param str coordinate: maven coordinate
:raises: :py:exc:`pymaven.errors.MissingArtifactError`
Expand Down
4 changes: 2 additions & 2 deletions pymaven/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# Generic errors
class PymavenError(Exception):
"""Base class for all errrors in PymavenError
"""Base class for all errors in PymavenError

Do not raise directly, but make a subclass
"""
Expand All @@ -48,7 +48,7 @@ class MissingPathError(RepositoryError):

# Maven Client errors
class ClientError(PymavenError):
"""Generic erors raied by maven clients"""
"""Generic errors raised by maven clients"""


class MissingArtifactError(ClientError):
Expand Down
4 changes: 2 additions & 2 deletions pymaven/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def wrapper(slf, *args, **kwargs):


def pad(seq, target_length, padding=None):
"""Extend the sequence *seq* with *padding* (default: None) if the lenght
"""Extend the sequence *seq* with *padding* (default: None) if the length
of *seq* is less than *target_length*. Modifies *seq* in place.

>>> pad([], 5, 1)
Expand All @@ -59,7 +59,7 @@ def _first_of_each(*args, **kwargs):


def urljoin(*parts):
"""Join urls in a less suprising manner than urlparse.urljoin
"""Join urls in a less surprising manner than urlparse.urljoin

Inspired by this stackoverflow question:
http://codereview.stackexchange.com/questions/13027/joining-url-path-components-intelligently
Expand Down
8 changes: 4 additions & 4 deletions pymaven/versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Restriction(object):
def __init__(self, spec=None):
"""Create a restriction

Restrictions are specified using a semi-mathmatical notation:
Restrictions are specified using a semi-mathematical notation:

* 1.0: "Soft" requirement on 1.0 (just a recommendation, if it matches
all other ranges for the dependency)
Expand Down Expand Up @@ -104,7 +104,7 @@ def __contains__(self, version):
"""Return true if version is contained within the restriction

version must be greater than the lower bound (or equal to it if the
lower bound is inclusive) and less than the upper bount ( or equal to it
lower bound is inclusive) and less than the upper bound ( or equal to it
if the upper bound is inclusive).
"""
if self.lower_bound:
Expand Down Expand Up @@ -292,7 +292,7 @@ def from_version(version):
return VersionRange(str(version))

def restrict(self, version_range):
"""Retruns a new VersionRange that is a restriction of this
"""Returns a new VersionRange that is a restriction of this
and the specified version range.

Prefers this version over the specified version range
Expand Down Expand Up @@ -412,7 +412,7 @@ def _compare(self, this, other):
elif isinstance(this, (list, tuple)):
return self._list_compare(this, other)
else:
raise RuntimeError("Unkown type for t: %r" % this)
raise RuntimeError("Unknown type for t: %r" % this)

def _int_compare(self, this, other):
if isinstance(other, int):
Expand Down