D2282: util: extract all date-related utils in utils/dateutil module

lothiraldan (Boris Feld) phabricator at mercurial-scm.org
Fri Feb 16 05:57:18 EST 2018


lothiraldan added a subscriber: durin42.
lothiraldan added a comment.


  In https://phab.mercurial-scm.org/D2282#37757, @dlax wrote:
  
  > lothiraldan (Boris Feld) wrote:
  >
  > > I have but I'm always very cautious when creating a new package with the
  > >  name of an old module. .pyc/.pycache files may still be there both for
  > >  Mercurial developers and for Mercurial users using their deb/rpm package.
  > > 
  > > I may be wrong, but if we could avoid weird bugs, I would prefer put in
  > >  the utils package.
  >
  > Well, this is Python... Most people are aware of this kind of issues, I
  >  think. So the argument sounds a bit like FUD :)
  >
  > On the other hand, if we keep going that route, we'll have to live with
  >  util/utils "forever" just to have avoided this hypothetical
  >  inconvenience, is this more acceptable?
  
  
  I would love to be wrong on this, just remember that Mercurial users are not necessarily Python developers.
  
  @martinvonz @durin42 what d you think about copying `util.py` as `util/__init__.py`?

REPOSITORY
  rHG Mercurial

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

To: lothiraldan, #hg-reviewers
Cc: durin42, dlax, martinvonz, mercurial-devel


More information about the Mercurial-devel mailing list