Skip to content

Commit

Permalink
fix return value for key creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanfield Chu committed Jul 19, 2016
1 parent c1de37d commit 063ef61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def parse_error(cls, error):
@classmethod
def create_key(cls, method, name, error):
key = "%s.%s.%r" % (method, name, StatsError.parse_error(error))
return hashlib.md5(key).hexdigest()
return hashlib.md5(key.encode('utf-8')).hexdigest()

def occured(self):
self.occurences += 1
Expand Down

0 comments on commit 063ef61

Please sign in to comment.