Patchwork [04,of,10] contrib: allow importing "symbols" from mercurial

login
register
mail settings
Submitter Augie Fackler
Date Aug. 23, 2017, 2:55 p.m.
Message ID <d8042acd416ee5c0daee.1503500103@imladris.local>
Download mbox | patch
Permalink /patch/23233/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 23, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503425541 14400
#      Tue Aug 22 14:12:21 2017 -0400
# Node ID d8042acd416ee5c0daeea12d6e4c2595a5667919
# Parent  297638dbead3ae064c05c4bdc6fe9af0b8f4479b
contrib: allow importing "symbols" from mercurial

Patch

diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -21,6 +21,7 @@  if True: # disable lexical sorting check
 # Whitelist of modules that symbols can be directly imported from.
 allowsymbolimports = (
     '__future__',
+    'mercurial',
     'mercurial.hgweb.common',
     'mercurial.hgweb.request',
     'mercurial.i18n',