/usr/share/pyshared/pgloader/RRRtools.py is in pgloader 2.3.3~dev3-1.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 13 14 15 16 17 18 | # Author: Dimitri Fontaine <dim@tapoueh.org>
#
# pgloader librairies
import collections
class RRReader(collections.deque):
""" Round Robin reader, which are collections.deque with a
readlines() method"""
def readlines(self):
""" return next line from queue """
while 1:
try:
yield self.popleft()
except IndexError:
return
|