diff --git a/hggit/git_handler.py b/hggit/git_handler.py index 18a3dbd0306f48e2de46a9d0efdae532b76e5d8e_aGdnaXQvZ2l0X2hhbmRsZXIucHk=..acb429c62c285da31f1cad58134fdc87ec2aaaee_aGdnaXQvZ2l0X2hhbmRsZXIucHk= 100644 --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -169,10 +169,8 @@ file = self.repo.opener(self.mapfile, 'w+', atomictemp=True) for hgsha, gitsha in sorted(self._map_hg.iteritems()): file.write("%s %s\n" % (gitsha, hgsha)) - # If this complains that NoneType is not callable, then - # atomictempfile no longer has either of rename (pre-1.9) or - # close (post-1.9) - getattr(file, 'rename', getattr(file, 'close', None))() + # If this complains, atomictempfile no longer has close + file.close() def load_tags(self): self.tags = {}