Merlijn van Deen has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/81116


Change subject: Add wrapper to allow direct external import
......................................................................

Add wrapper to allow direct external import

This allows us to do
    from externals import httplib2

instead of first extending the path to externals/httplib2/python2.

Change-Id: I4363234f87d9d024cc15001ec06bfd42529d639d
---
A __init__.py
A python2/__init__.py
2 files changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/externals/httplib2 
refs/changes/16/81116/1

diff --git a/__init__.py b/__init__.py
new file mode 100644
index 0000000..8b48476
--- /dev/null
+++ b/__init__.py
@@ -0,0 +1,3 @@
+import inspect
+import python2.httplib2 as httplib2
+globals().update(inspect.getmembers(httplib2))
diff --git a/python2/__init__.py b/python2/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/python2/__init__.py

-- 
To view, visit https://gerrit.wikimedia.org/r/81116
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4363234f87d9d024cc15001ec06bfd42529d639d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/externals/httplib2
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to