Skip to content

Commit

Permalink
ensuring that contents of calculated hash key are bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfalcao committed Aug 31, 2015
1 parent 744ead1 commit c4fcc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repocket/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def _calculate_key_for_field(self, name):

def _calculate_hash_key(self):
return b':'.join([
self._key_prefix,
self._primary_key,
bytes(self._key_prefix),
bytes(self._primary_key),
])

def _set_primary_key(self, value=None):
Expand Down

0 comments on commit c4fcc0c

Please sign in to comment.