##// END OF EJS Templates
secret per hostname
Matthias Bussonnier -
Show More
@@ -22,7 +22,8 b' else:'
22 22
23 23 # Keyring stores passwords by a 'username', but we're not storing a username and
24 24 # password
25 fake_username = 'ipython_tools'
25 import socket
26 fake_username = 'ipython_tools_%s' % socket.gethostname().replace('.','_').replace('-','_')
26 27
27 28 class Obj(dict):
28 29 """Dictionary with attribute access to names."""
@@ -59,7 +60,7 b' def get_auth_token():'
59 60 "public_repo",
60 61 "gist"
61 62 ],
62 "note": "IPython tools",
63 "note": "IPython tools %s" % socket.gethostname(),
63 64 "note_url": "https://github.com/ipython/ipython/tree/master/tools",
64 65 }
65 66 response = requests.post('https://api.github.com/authorizations',
General Comments 0
You need to be logged in to leave comments. Login now