Fix deprecation warning about the sets module
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 24 Apr 2010 14:20:59 +0000 (16:20 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 24 Apr 2010 14:20:59 +0000 (16:20 +0200)
src/cmdline/kofoto-check-integrity

index b0b8ff0..010ba6d 100755 (executable)
@@ -2,7 +2,6 @@
 
 import sqlite
 import sys
-from sets import Set
 
 if len(sys.argv) != 2:
     print "Usage: kofoto-check-integrity <path-to-database>"
@@ -10,7 +9,7 @@ if len(sys.argv) != 2:
 
 def getIds(connection, idMapping, tableColumn):
     cursor = connection.cursor()
-    s = Set()
+    s = set()
     table, column = tableColumn.split(".")
     cursor.execute("select %s from %s" % (column, table))
     for row in cursor.fetchall():