Update cloudfiles.py Remove trailing whitespace Closes #1068
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/6055a82b Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/6055a82b Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/6055a82b Branch: refs/heads/trunk Commit: 6055a82ba4499921175b8f5ab82cd5c06f16d344 Parents: 0378495 Author: Hakan Carlsson <hakan.carls...@gmail.com> Authored: Mon Jun 26 10:01:44 2017 +0200 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Fri Aug 11 14:54:41 2017 +1000 ---------------------------------------------------------------------- libcloud/storage/drivers/cloudfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/6055a82b/libcloud/storage/drivers/cloudfiles.py ---------------------------------------------------------------------- diff --git a/libcloud/storage/drivers/cloudfiles.py b/libcloud/storage/drivers/cloudfiles.py index 06ccf2a..195570a 100644 --- a/libcloud/storage/drivers/cloudfiles.py +++ b/libcloud/storage/drivers/cloudfiles.py @@ -137,8 +137,8 @@ class OpenStackSwiftConnection(OpenStackBaseConnection): elif ('1.1' in self._auth_version) or ('1.0' in self._auth_version): endpoint = self.service_catalog.get_endpoint( name=self._service_name, region=self._service_region) - else: - endpoint = None + else: + endpoint = None if endpoint: return endpoint.url