Browse Source

Normalize URL to ends with a slash

Change-Id: Ib32f6aed1fffa636740113b17786c6ace305c300
changes/91/391991/1
Antoine Musso 8 years ago
parent
commit
c7d600ab01
  1. 5
      gertty/config.py

5
gertty/config.py

@ -34,7 +34,10 @@ class Config(object):
if server is None:
server = self.config.sections()[0]
self.server = server
self.url = self.config.get(server, 'url')
url = self.config.get(server, 'url')
if not url.endswith('/'):
url += '/'
self.url = url
self.username = self.config.get(server, 'username')
if not self.config.has_option(server, 'password'):
self.password = getpass.getpass("Password for %s (%s): "

Loading…
Cancel
Save