Skip to content

Commit 7848681

Browse files
committed
Tidying - reorder params and add a documentation line for third param.
1 parent 4b40857 commit 7848681

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

embedly/client.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,20 @@ def __init__(self, key=None, user_agent=None, timeout=60):
3131
"""
3232
Initialize the Embedly client
3333
34-
:param user_agent: User Agent passed to Embedly
35-
:type user_agent: str
3634
:param key: Embedly Pro key
3735
:type key: str
36+
:param user_agent: User Agent passed to Embedly
37+
:type user_agent: str
38+
:param timeout: timeout for HTTP connection attempts
39+
:type timeout: int
3840
3941
:returns: None
4042
"""
43+
self.key = key
4144
self.user_agent = user_agent or get_user_agent()
4245
self.timeout = timeout
43-
self.key = key
44-
self.services = []
4546

47+
self.services = []
4648
self._regex = None
4749

4850
def get_services(self):

0 commit comments

Comments
 (0)