Fix deprecation warning in python-gitlab
In version 1:3.5.0-1 of the python3-gitlab package, a deprecation warning is introduced.
$ gitlab-rulez diff --filter 'sample-applications/*' gitlab-scripts/rulez.yaml
/usr/bin/gitlab-rulez:284: DeprecationWarning:
Direct access to 'gitlab.DEVELOPER_ACCESS' is deprecated and will be removed in a future major python-gitlab release. Please use 'gitlab.const.DEVELOPER_ACCESS' instead. (python-gitlab: /usr/lib/python3/dist-packages/gitlab/__init__.py:44)
item[key] = getattr(gitlab, symbol)
/usr/bin/gitlab-rulez:284: DeprecationWarning:
Direct access to 'gitlab.MAINTAINER_ACCESS' is deprecated and will be removed in a future major python-gitlab release. Please use 'gitlab.const.MAINTAINER_ACCESS' instead. (python-gitlab: /usr/lib/python3/dist-packages/gitlab/__init__.py:44)
item[key] = getattr(gitlab, symbol)
...snipped...
Signed-off-by: Ritesh Raj Sarraf ritesh.sarraf@collabora.com