Skip to content

Commit f4f20b4

Browse files
authored
Merge pull request #10 from corywright/fix-typos
Fix various typos throughout the project
2 parents a7e6196 + 1371a0d commit f4f20b4

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Before you submit a pull request, check that it meets these guidelines:
102102
2. If the pull request adds functionality, the docs should be updated. Put
103103
your new functionality into a function with a docstring, and add the
104104
feature to the list in README.rst.
105-
3. The pull request should work for Python 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check
105+
3. The pull request should work for Python 2.7, 3.4 and 3.5, and for PyPy. Check
106106
https://travis-ci.org/ilanddev/python-sdk/pull_requests
107107
and make sure that the tests pass for all supported Python versions.
108108

docs/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To create an instance of the ``iland.Api``::
1616
username=USERNAME,
1717
password=PASSWORD)
1818

19-
You can then perform GET, PUT, PUSH and DELETE requests against the iland
19+
You can then perform GET, PUT, POST and DELETE requests against the iland
2020
cloud::
2121

2222
>>> user = api.get('/user/' + USERNAME)

iland/api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
class Api(object):
16-
"""A python interface into the iland cloud API
16+
"""A Python interface into the iland cloud API
1717
"""
1818

1919
_client_id = None
@@ -155,8 +155,8 @@ def _do_request(self, rpath, verb='GET', form_data=None):
155155
return json_obj
156156

157157
def get(self, rpath):
158-
""" Perform a GET request agains the iland cloud API given its resource
159-
path.
158+
""" Perform a GET request against the iland cloud API given its
159+
resource path.
160160
161161
`iland.Api` will refresh the access token if non valid.
162162
@@ -168,8 +168,8 @@ def get(self, rpath):
168168
return self._do_request(rpath)
169169

170170
def put(self, rpath, form_data=None):
171-
""" Perform a PUT request agains the iland cloud API given its resource
172-
path.
171+
""" Perform a PUT request against the iland cloud API given its
172+
resource path.
173173
174174
`iland.Api` will refresh the access token if non valid.
175175
@@ -182,8 +182,8 @@ def put(self, rpath, form_data=None):
182182
return self._do_request(rpath, verb='PUT', form_data=form_data)
183183

184184
def post(self, rpath, form_data=None):
185-
""" Perform a POST request agains the iland cloud API given its resource
186-
path.
185+
""" Perform a POST request against the iland cloud API given its
186+
resource path.
187187
188188
`iland.Api` will refresh the access token if non valid.
189189
@@ -196,7 +196,7 @@ def post(self, rpath, form_data=None):
196196
return self._do_request(rpath, verb='POST', form_data=form_data)
197197

198198
def delete(self, rpath):
199-
""" Perform a DELETE request agains the iland cloud API given its
199+
""" Perform a DELETE request against the iland cloud API given its
200200
resource path.
201201
202202
`iland.Api` will refresh the access token if non valid.
@@ -211,8 +211,8 @@ def delete(self, rpath):
211211
def get_access_token(self):
212212
""" Returns the access token in use for this session.
213213
214-
This method is exposed in case you interested in managing the token
215-
life cycle yourself. `iland.Api` will refresh the token on your
214+
This method is exposed in case you are interested in managing the
215+
token life cycle yourself. `iland.Api` will refresh the token on your
216216
behalf while performing queries.
217217
218218
:raises: UnauthorizedException: credentials / grants invalids
@@ -223,8 +223,8 @@ def get_access_token(self):
223223
def refresh_access_token(self):
224224
""" Refresh token if token is not valid: None or expired.
225225
226-
This method is exposed in case you interested in managing the token
227-
life cycle yourself. `iland.Api` will refresh the token on your
226+
This method is exposed in case you are interested in managing the
227+
token life cycle yourself. `iland.Api` will refresh the token on your
228228
behalf while performing queries.
229229
230230
:raises: UnauthorizedException: credentials / grants invalids
@@ -235,8 +235,8 @@ def refresh_access_token(self):
235235
def login(self):
236236
""" Requests an access token.
237237
238-
This method is exposed in case you interested in managing the token
239-
life cycle yourself. `iland.Api` will refresh the token on your
238+
This method is exposed in case you are interested in managing the
239+
token life cycle yourself. `iland.Api` will refresh the token on your
240240
behalf while performing queries.
241241
242242
:raises: UnauthorizedException: credentials / grants invalids

iland/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
"""A library that provides custom excptions for the `iland.Api` module."""
3+
"""A library that provides custom exceptions for the `iland.Api` module."""
44

55

66
class ApiException(Exception):

iland/log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# -*- coding: utf-8 -*-
22

3-
"""A library that provides a custome logger for the `iland.Api` object."""
3+
"""A library that provides a custom logger for the `iland.Api` object."""
44

55
import logging
66
import sys
77

8-
#: A customer Python logging logger for the `iland.Api` object.
8+
#: A custom Python logging logger for the `iland.Api` object.
99
LOG = logging.getLogger('iland_sdk')
1010
LOG.setLevel(logging.INFO)
1111

0 commit comments

Comments
 (0)