/usr/lib/python3/dist-packages/pyutilib/misc/generator.py is in python3-pyutilib 5.3.5-1.
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 | #
# Copyright (C) 2009, All Rights Reserved
# David Beazley
# Permission granted to distribute with PyUtilib under the BSD license
#
def coroutine(func):
def start(*args,**kwargs):
cr = func(*args,**kwargs)
#print 'y',cr.send(None)
return cr
return start
|