John Vandenberg has uploaded a new change for review.
https://gerrit.wikimedia.org/r/181601
Change subject: Export Namespace as a package level class
......................................................................
Export Namespace as a package level class
Change-Id: I8dfd83c3564e2523a5f0fb76032b6e2ee431bc10
---
M pywikibot/__init__.py
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/01/181601/1
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index 40dde82..b6cad4c 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -63,7 +63,7 @@
)
# pep257 doesn't understand when the first entry is on the next line
-__all__ = ('config', 'ui', 'UnicodeMixin', 'translate',
+__all__ = ('config', 'ui', 'UnicodeMixin', 'translate', 'Namespace',
'Page', 'FilePage', 'Category', 'Link', 'User',
'ItemPage', 'PropertyPage', 'Claim', 'TimeStripper',
'html2unicode', 'url2unicode', 'unicode2html',
@@ -618,7 +618,7 @@
Claim,
)
from .page import html2unicode, url2unicode, unicode2html
-
+from .site import Namespace
link_regex = re.compile(r'\[\[(?P<title>[^\]|[<>{}]*)(\|.*?)?\]\]')
--
To view, visit https://gerrit.wikimedia.org/r/181601
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8dfd83c3564e2523a5f0fb76032b6e2ee431bc10
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: John Vandenberg <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits