import pagure.lib.query before using it, in the code
For a reason I do not quite understand, without this import
statement (that is already present earlier in the code), the code
crash with the error:
File "/usr/lib/python3.6/site-packages/pagure/ui/clone.py", line 71, in _get_remote_user
token = pagure.lib.query.get_api_token(
UnboundLocalError: local variable 'pagure' referenced before assignment
This solves the error, but I really don't see why it occurs in the
first place.
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>