apt_pkg.ParseTagFile is marked as deprecated; I believe you pass a file (or presumably anything else that iterates lines) to the TagFile constructor instead.
apt_pkg. ParseTagFile is marked as deprecated; I believe you pass a file (or presumably anything else that iterates lines) to the TagFile constructor instead.