From 749f65e3e30e857301e44db4a87eca99d45cdc66 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Thu, 19 Nov 2015 00:01:52 +0000 Subject: 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/ --- usr.bin/fortune/tools/do_uniq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/fortune') diff --git a/usr.bin/fortune/tools/do_uniq.py b/usr.bin/fortune/tools/do_uniq.py index bd626761abb6..b434a10f5b3f 100644 --- a/usr.bin/fortune/tools/do_uniq.py +++ b/usr.bin/fortune/tools/do_uniq.py @@ -3,7 +3,7 @@ # $FreeBSD$ # # an aggressive little script for trimming duplicate cookies - +from __future__ import print_function import argparse import re -- cgit v1.2.3