Skip to content

Commit 4e80f1a

Browse files
committed
authfiles: Drop handling of ~/.bugzillacookies and ~/.bugzillatokens
We have been preferring ~/.cache locations since 2.0.0 release, and token and cookie support is on the way out in bugzilla anyways so the effects should be minimal Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent efdb4f0 commit 4e80f1a

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

bugzilla/_authfiles.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,10 @@ def _parse_hostname(url):
2121

2222
def _default_location(filename, kind):
2323
"""
24-
Determine default location for filename, like 'bugzillacookies'. If
25-
old style ~/.bugzillacookies exists, we use that, otherwise we
26-
use ~/.cache/python-bugzilla/bugzillacookies.
27-
Same for bugzillatoken and bugzillarc
24+
Determine default location for passed filename and xdg kind,
25+
example: ~/.cache/python-bugzilla/bugzillacookies
2826
"""
29-
homepath = os.path.expanduser("~/.%s" % filename)
3027
xdgpath = os.path.expanduser("~/.%s/python-bugzilla/%s" % (kind, filename))
31-
if os.path.exists(xdgpath):
32-
return xdgpath
33-
if os.path.exists(homepath):
34-
return homepath
35-
3628
if not os.path.exists(os.path.dirname(xdgpath)):
3729
os.makedirs(os.path.dirname(xdgpath), 0o700)
3830
return xdgpath

0 commit comments

Comments
 (0)