[PATCH] atomictempfile: make close() consistent with other file-like objects

Matt Mackall mpm at selenic.com
Thu Aug 25 15:33:14 CDT 2011


On Wed, 2011-08-24 at 20:21 -0400, Greg Ward wrote:
> -    def close(self):
> +    def rename(self):
> +        warnings.warn('atomictempfile.rename() replaced by close()',
> +                      DeprecationWarning, 2)
> +        self.close()
> +

I'd rather just rip it out entirely.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list