Skip to content

Commit bec3447

Browse files
committed
fix for "TypeError: ServerProxy constructor got multiple values for keyword argument 'use_datetime'" if you provide use_datetime kwarg to DokWiki()
1 parent 39a3fe5 commit bec3447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dokuwiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DokuWiki(object):
3131
def __init__(self, url, user, password, **kwargs):
3232
"""Initialize the object by connecting to the XMLRPC server."""
3333
# Initialize XMLRPC client.
34-
use_datetime = kwargs.get('use_datetime', True)
34+
use_datetime = kwargs.pop('use_datetime', True)
3535
url = '%s/lib/exe/xmlrpc.php?%s' % (
3636
url, urlencode({'u': user, 'p': password}))
3737
self.proxy = ServerProxy(url, use_datetime=use_datetime, **kwargs)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy