[PATCH] UIDMaps: prevent from leaving a truncated map file
Łukasz Żarnowiecki
dolohow at outlook.com
Wed Dec 21 10:50:27 GMT 2016
Hi Nicolas,
On Mon, Oct 24, 2016 at 03:26:15AM +0200, Nicolas Sebrecht wrote:
> def _loadmaps(self):
> - with self.maplock:
> - mapfilename = self._getmapfilename()
> + mapfilename = self._getmapfilename()
> + mapfilenametmp = "%s.tmp"% mapfilename
> + mapfilenamelock = "%s.lock"% mapfilename
Maybe it is better to use format function. It is recommended for use in
Python 3.
Best,
Łukasz
More information about the OfflineIMAP-project
mailing list