##// END OF EJS Templates
util: give appropriate default args to atomictempfile()...
Yuya Nishihara -
r11212:4d8db967 default
parent child Browse files
Show More
@@ -772,7 +772,7 b' class atomictempfile(object):'
772 file. When rename is called, the copy is renamed to the original
772 file. When rename is called, the copy is renamed to the original
773 name, making the changes visible.
773 name, making the changes visible.
774 """
774 """
775 def __init__(self, name, mode, createmode):
775 def __init__(self, name, mode='w+b', createmode=None):
776 self.__name = name
776 self.__name = name
777 self._fp = None
777 self._fp = None
778 self.temp = mktempcopy(name, emptyok=('w' in mode),
778 self.temp = mktempcopy(name, emptyok=('w' in mode),
General Comments 0
You need to be logged in to leave comments. Login now