Skip to content

Commit

Permalink
Merge pull request #443 from mrsanders/python3-slave
Browse files Browse the repository at this point in the history
Python 3 compatibility for slave mode. (Fixes 'locust --slave')
  • Loading branch information
heyman authored Jul 8, 2016
2 parents 2d11678 + d23d4a7 commit dad9fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def slave_count(self):
class SlaveLocustRunner(DistributedLocustRunner):
def __init__(self, *args, **kwargs):
super(SlaveLocustRunner, self).__init__(*args, **kwargs)
self.client_id = socket.gethostname() + "_" + md5(str(time() + random.randint(0,10000))).hexdigest()
self.client_id = socket.gethostname() + "_" + md5(str(time() + random.randint(0,10000)).encode('utf-8')).hexdigest()

self.client = rpc.Client(self.master_host, self.master_port)
self.greenlet = Group()
Expand Down

0 comments on commit dad9fd0

Please sign in to comment.