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

PEP 8: convert ''' to """ in docstrings · python-webuntis/python-webuntis@a70e433 · GitHub

Commit a70e433

Browse files
committed
PEP 8: convert ''' to """ in docstrings
1 parent 16d522d commit a70e433

14 files changed

Lines changed: 195 additions & 195 deletions

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env python
2-
'''
2+
"""
33
This file is part of python-webuntis
44
55
:copyright: (c) 2012 by Markus Unterwaditzer.
66
:license: BSD, see LICENSE for more details.
7-
'''
7+
"""
88

99
from setuptools import setup, find_packages
1010
from sys import version_info

‎tests/__init__.py‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
'''
1+
"""
22
This file is part of python-webuntis
33
44
:copyright: (c) 2012 by Markus Unterwaditzer.
55
:license: BSD, see LICENSE for more details.
6-
'''
6+
"""
77

88

99
import re
@@ -54,8 +54,8 @@ def assertRaisesRegex(self, exc, regexp, callback, *a, **kw):
5454
assert re.search(regexp, repr(excinfo.value)), excinfo.value
5555

5656
def assert_strict_equal(self, x, *args):
57-
'''Stricter version of assert_equal that doesn't do implicit conversion
58-
between unicode and strings'''
57+
"""Stricter version of assert_equal that doesn't do implicit conversion
58+
between unicode and strings"""
5959
for y in args:
6060
self._assert_strict_equal_impl(x, y)
6161

@@ -115,15 +115,15 @@ def tearDown(self):
115115

116116

117117
def mock_results(methods, swallow_not_found=False):
118-
'''Mock API methods more easily.
118+
"""Mock API methods more easily.
119119
120120
:type methods: dict
121121
:param methods: A dictionary containing one callable for each API method.
122122
123123
:type swallow_not_found: bool
124124
:param swallow_not_found: Whether to return {'result': {}} on unmocked API
125125
methods.
126-
'''
126+
"""
127127
def new(url, jsondata, headers, http_session):
128128
method = jsondata['method']
129129
try:
@@ -148,8 +148,8 @@ def new(url, jsondata, headers, http_session):
148148

149149

150150
def raw_vs_object(jsondata, result):
151-
'''zip json data and results, but grouped by id instead of order. Also runs
152-
some checks that hashes are unique.'''
151+
"""zip json data and results, but grouped by id instead of order. Also runs
152+
some checks that hashes are unique."""
153153
raw_lookup = dict((x['id'], x) for x in jsondata)
154154
known_hashes = set()
155155

‎webuntis/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
'''
1+
"""
22
This file is part of python-webuntis
33
44
:copyright: (c) 2012 by Markus Unterwaditzer.
55
:license: BSD, see LICENSE for more details.
6-
'''
6+
"""
77
__version__ = '0.1.9'
88
from webuntis.session import Session

‎webuntis/errors.py‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
'''
1+
"""
22
This file is part of python-webuntis
33
44
:copyright: (c) 2013 by Markus Unterwaditzer.
55
:license: BSD, see LICENSE for more details.
6-
'''
6+
"""
77

88

99
class Error(Exception):
10-
'''Superclass for all `python-webuntis`-specific errors, never gets raised
11-
directly.'''
10+
"""Superclass for all `python-webuntis`-specific errors, never gets raised
11+
directly."""
1212

1313

1414
class RemoteError(Error, IOError):
15-
'''There was some kind of error while interacting with the server.'''
15+
"""There was some kind of error while interacting with the server."""
1616

1717
#: The decoded JSON request which lead to this error, if available.
1818
request = None
@@ -25,23 +25,23 @@ class RemoteError(Error, IOError):
2525

2626

2727
class MethodNotFoundError(RemoteError):
28-
'''The JSON-RPC method was not found. This really should not occur.'''
28+
"""The JSON-RPC method was not found. This really should not occur."""
2929
pass
3030

3131

3232
class AuthError(RemoteError):
33-
'''Errors while logging in.'''
33+
"""Errors while logging in."""
3434
pass
3535

3636

3737
class BadCredentialsError(AuthError, ValueError):
38-
'''Invalid or missing username or password.'''
38+
"""Invalid or missing username or password."""
3939
pass
4040

4141

4242
class NotLoggedInError(AuthError):
43-
'''The session expired or we never logged in.'''
43+
"""The session expired or we never logged in."""
4444

4545

4646
class DateNotAllowed(RemoteError):
47-
'''The selected date range (for timetable) is not allowed.'''
47+
"""The selected date range (for timetable) is not allowed."""

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL