RoySmith added a comment.
It's possible this is a bug in the upstream requests library. I can
reproduce this (on both MacOS and Debian) with:
#!/usr/bin/env python
import requests
from requests_oauthlib import OAuth1
r1 = requests.get('https://en.wikipedia.org/wiki/Main%20Page',
auth=OAuth1('', '', '', ''))
r2 = requests.get('https://en.wikipedia.org/wiki/Main%20Page', auth=None)
print(f"{r1.url=}")
print(f"{r2.url=}")
(requests) Roys-MBP [requests] /Users/roy/dev/requests/venv/bin/python
/Users/roy/dev/requests/src/try.py
r1.url='https://en.wikipedia.org/wiki/Main%20Page'
r2.url='https://en.wikipedia.org/wiki/Main_Page'
Using my real OAuth credentials gives the same results as the dummy values
shown above.
TASK DETAIL
https://phabricator.wikimedia.org/T336610
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: RoySmith
Cc: Aklapper, pywikibot-bugs-list, RoySmith, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis,
mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]