python/samba/emulate: PY3 port of samba.tests.emulate.traffic_packet
authorNoel Power <noel.power@suse.com>
Thu, 10 May 2018 10:57:59 +0000 (11:57 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 21:27:13 +0000 (23:27 +0200)
commit2a97996c0aa0aa40cb2280145327cb17bd08df49
tree551b5de992fcc6ded2a8d9b657d9340dd58975c4
parent94c982004f8182bcbe8ade897b2128efde28168d
python/samba/emulate: PY3 port of samba.tests.emulate.traffic_packet

Fixes
+ None cannot be used with '<' or '>' operators
+ ord expects 'str'
+ unicode doesn't exist in py3
+ bytes class does not have encode method

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/emulate/traffic.py
python/samba/emulate/traffic_packets.py