D2847: remotenames: work around move of ABCs in collections

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Mar 14 13:19:44 EDT 2018


durin42 added a comment.


  In https://phab.mercurial-scm.org/D2847#45947, @yuja wrote:
  
  > Could be either `import collections.abc` or adding `collections.abc` to
  >  `list_stdlib_modules`.
  
  
  Sadly, neither worked :(
  
  The import checker currently bans /all/ `from ... import ...` statements on stdlib modules (sigh, probably my fault), and `import collections.abc` goes sideways on Python 2. What I've done seems to work though...

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2847

To: durin42, #hg-reviewers
Cc: yuja, mercurial-devel


More information about the Mercurial-devel mailing list