newer mwclient, fix deprecation warning
This commit is contained in:
parent
64da0d6b3e
commit
c04f8849d2
|
@ -0,0 +1 @@
|
|||
mwclient>=0.10.1
|
2
setup.py
2
setup.py
|
@ -39,7 +39,7 @@ setup(name="wp2git",
|
|||
long_description=open('README.md').read(),
|
||||
author=open('AUTHORS').read(),
|
||||
author_email="dlenski@gmail.com",
|
||||
install_requires=[ 'mwclient>=0.8' ],
|
||||
install_requires=open('requirements.txt').readlines(),
|
||||
license=open('LICENSE').read(),
|
||||
url="https://github.com/dlenski/wp2git",
|
||||
packages=["wp2git"],
|
||||
|
|
|
@ -61,7 +61,7 @@ def main():
|
|||
scheme, host, path = 'https', '%s.wikipedia.org' % args.lang, '/w/'
|
||||
else:
|
||||
scheme, host, path = 'https', 'wikipedia.org', '/w/'
|
||||
site = mwclient.Site((scheme, host), path=path)
|
||||
site = mwclient.Site(host, path=path, scheme=scheme)
|
||||
print('Connected to %s://%s%s' % (scheme, host, path), file=stderr)
|
||||
|
||||
# Find the page
|
||||
|
|
Loading…
Reference in New Issue