"""
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2007-2015 PhiloSoft Design"
-__license__ = "GNU GPL"
-
import sys
from sqlobject import SQLObjectNotFound
from sqlobject.sqlbuilder import Insert
fs_encoding = xsetbg_conf.get("images", "fs_encoding")
-dump_file = open(sys.argv[1], 'rU')
+dump_file = open(sys.argv[1], 'r')
xsetbg_db = recreate_db()
count_new = count_old = 0
count_new += 1
else:
assert id is None or row.id == id
- assert row.last_shown == timestamp
+ if row.last_shown is not None:
+ assert row.last_shown == timestamp
count_old += 1
dump_file.close()