This is an archive of the discontinued Mercurial Phabricator instance.

gitlookup: using util.urlreq instead of importing urllib
ClosedPublic

Authored by singhsrb on Sep 13 2017, 5:48 PM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Commits
rFBHGX845dc7826b85: gitlookup: using util.urlreq instead of importing urllib
Summary

I was reorganising the imports of gitlookup.py. After reorganising, the test
test-check-code-hg.t was probably able to recognise the imports and suggested
that we should using util.urlreq instead of urllib. Therefore, I am making the
suggested change in this commit and removing the urllib dependency.

I will be reorganising the imports in a later commit.

Test Plan

Ran all the tests.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

singhsrb created this revision.Sep 13 2017, 5:48 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptSep 13 2017, 5:48 PM
durham accepted this revision.Sep 13 2017, 7:57 PM
durham added a subscriber: durham.
durham added inline comments.
hgext3rd/gitlookup.py
109

Do we need to drop the urllib import?

This revision is now accepted and ready to land.Sep 13 2017, 7:57 PM
singhsrb edited the summary of this revision. (Show Details)Sep 13 2017, 8:06 PM
singhsrb updated this revision to Diff 1798.
This revision was automatically updated to reflect the committed changes.