FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

typos + PEP8 · robquant/python-webuntis@7c67ddb · GitHub

Commit 7c67ddb

Browse files
committed
typos + PEP8
1 parent 8943492 commit 7c67ddb

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎webuntis/session.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def login(self):
7777
7878
:raises: :py:class:`webuntis.errors.BadCredentialsError` --
7979
Username/Password missing or invalid.
80-
:raises: :py:class:`webuntis.errors.AuthError` -- Didn't recieve a
80+
:raises: :py:class:`webuntis.errors.AuthError` -- Didn't receive a
8181
session ID for unknown reasons.
8282
"""
8383

@@ -346,7 +346,7 @@ def timetable_with_absences(self, start, end):
346346
:rtype: :py:class:`webuntis.objects.AbsencesList`
347347
"""
348348

349-
parameters = { u'options': self._create_date_param(end, start) }
349+
parameters = {u'options': self._create_date_param(end, start)}
350350

351351
return objects.AbsencesList, 'getTimetableWithAbsences', parameters
352352

@@ -357,9 +357,9 @@ def _create_date_param(end, start, **kwargs):
357357
if json_start > json_end:
358358
raise ValueError('Start can\'t be later than the end.')
359359
parameters = dict({
360-
'startDate': json_start,
361-
'endDate': json_end,
362-
}, **kwargs)
360+
'startDate': json_start,
361+
'endDate': json_end,
362+
}, **kwargs)
363363
return parameters
364364

365365

‎webuntis/utils/logger.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
def log(level, message, *args, **kwargs):
1212
"""Log a message to the logger used. Written inside a function so it can be
13-
overridden if really neccessary."""
13+
overridden if really necessary."""
1414
global _logger
1515
if _logger is None:
1616
import logging

‎webuntis/utils/remote.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _parse_result(request_body, result_body):
111111
ID validation.
112112
113113
:param request_body: The not-yet-encoded body of the request sent.
114-
:param result_body: The decoded body of the result recieved.
114+
:param result_body: The decoded body of the result received.
115115
"""
116116

117117
if request_body[u'id'] != result_body[u'id']:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL