emulate/traffic: fix next usage
authorJoe Guo <joeg@catalyst.net.nz>
Wed, 20 Jun 2018 04:34:44 +0000 (16:34 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Aug 2018 05:08:25 +0000 (07:08 +0200)
commit8084f1838cee774fc79a4c7ff2d1182388105fcb
tree8ece68d43c5d8c683fb4d7636bab747f74751263
parentbadd7a23ed968dbf9f05c518f8c65a81ab796609
emulate/traffic: fix next usage

In commit b0c9de820c07d77c03b80505cb811ac1dac0808f, line 343:

    self.next_conversation_id = itertools.count().next

was changed to:

    self.next_conversation_id = next(itertools.count())

which is not correct, the first one is a function, the second one is a
int. This patch fixed it.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13573

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/emulate/traffic.py