aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/netinet/ip_id_period
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2015-11-19 00:01:52 +0000
committerCraig Rodrigues <rodrigc@FreeBSD.org>2015-11-19 00:01:52 +0000
commit749f65e3e30e857301e44db4a87eca99d45cdc66 (patch)
treeac0a298319445487c327ba5ef036a39c5cc7318f /tools/regression/netinet/ip_id_period
parent3fbd30d4952cad83641d876ff101e17e55cd6354 (diff)
Use print as a function for Python 3 [PEP 3105]
Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/
Notes
Notes: svn path=/head/; revision=291041
Diffstat (limited to 'tools/regression/netinet/ip_id_period')
-rw-r--r--tools/regression/netinet/ip_id_period/ip_id_period.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/regression/netinet/ip_id_period/ip_id_period.py b/tools/regression/netinet/ip_id_period/ip_id_period.py
index ba843216557f..c04f5a4b133b 100644
--- a/tools/regression/netinet/ip_id_period/ip_id_period.py
+++ b/tools/regression/netinet/ip_id_period/ip_id_period.py
@@ -27,6 +27,7 @@
# code. It will push 200000 packets, then report back what the min and max
# periods it saw for different IDs were.
+from __future__ import print_function
import os
import signal
import subprocess