Unable to get Project File statistics/attributes using Python-gitlab


#1

Hi
I notice that the Python-GitLab V1.6 manual lists the reference of “p”. Unable to find p.

Page 62:
Get the content and metadata of a file for a commit, using a blob sha:
items = project.repository_tree(path=‘docs’, ref=‘branch1’)
file_info = p.repository_blob(items[0][‘id’])
content = base64.b64decode(file_info[‘content’])
size = file_info[‘size’]

Request correction of this details and correction for the example to get File attributes.