Skip to content

Commit

Permalink
Merge pull request #6 from vatsalparekh/patch-2
Browse files Browse the repository at this point in the history
Compatibility for Python-3
  • Loading branch information
jbrendel committed Feb 11, 2017
2 parents ff11adb + 096bed8 commit 5e9043a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion random_primary.py
Expand Up @@ -122,7 +122,7 @@ def _make_random_key(self, key_len):
"""
return self.KEYPREFIX + random.choice(self._FIRSTIDCHAR) + \
''.join([ random.choice(self._IDCHARS) for dummy in xrange(0, key_len-1) ]) + \
''.join([ random.choice(self._IDCHARS) for dummy in range(0, key_len-1) ]) + \
self.KEYSUFFIX

def save(self, *args, **kwargs):
Expand Down

0 comments on commit 5e9043a

Please sign in to comment.