/usr/lib/python2.7/dist-packages/libpasteurize/fixes/fix_printfunction.py is in python-future 0.15.2-4ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | u"""
Fixer for print: from __future__ import print_function.
"""
from lib2to3 import fixer_base
from libfuturize.fixer_util import future_import
class FixPrintfunction(fixer_base.BaseFix):
# explicit = True
PATTERN = u"""
power< 'print' trailer < '(' any* ')' > any* >
"""
def transform(self, node, results):
future_import(u"print_function", node)
|