Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

Commit

Permalink
Use string formatting rather than adding strings together
Browse files Browse the repository at this point in the history
  • Loading branch information
dbr committed Jun 12, 2010
1 parent 8b647cc commit b835573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.py
Expand Up @@ -96,7 +96,7 @@ def create_signed_url(self, base_url):
Keyword arguments:
base_url -- The base URL from create_base_url()
"""
return base_url + '-' + HMAC(self._api_key, base_url, sha1).hexdigest()
return "%s-%s" % (base_url, HMAC(self._api_key, base_url, sha1).hexdigest())

def status_check(self):
"""Checks if everything is working as it should be"""
Expand Down

0 comments on commit b835573

Please sign in to comment.