From 3e9e4325cd6dd9322a93d2ffcb5b877e4899d3cb Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Wed, 28 Sep 2011 00:11:31 +0000 Subject: [PATCH] Strip url trailing backslash. It's annoying to have it crash much later in a member function call when a trailing backslash is provided. R=dpranke@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/8056016 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@103058 0039d316-1c4b-4281-b951-d872f2087c98 --- rietveld.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rietveld.py b/rietveld.py index d13173b321..037640c6ab 100644 --- a/rietveld.py +++ b/rietveld.py @@ -42,7 +42,7 @@ upload.logging.setLevel(logging.WARNING) # pylint: disable=E1103 class Rietveld(object): """Accesses rietveld.""" def __init__(self, url, email, password, extra_headers=None): - self.url = url + self.url = url.rstrip('/') # TODO(maruel): It's not awesome but maybe necessary to retrieve the value. # It happens when the presubmit check is ran out of process, the cookie # needed to be recreated from the credentials. Instead, it should pass the