else:
f.write(consline("lset", key, *val) + "\n")
+ def mtime(self):
+ try:
+ return os.stat(self.path).st_mtime
+ except FileNotFoundError:
+ return 0
+
class profile(object):
def __init__(self, dir):
self.dir = dir
raise KeyError("no such manga: (%s, %s)" % (libnm, id))
while True:
try:
- fp = openwdir(pj(self.dir, "%i.manga" % seq), "wx")
+ fp = openwdir(pj(self.dir, "%i.manga" % seq), "x")
except IOError:
seq += 1
else: