remove some superfluous print statements
This commit is contained in:
parent
8cefb7a680
commit
31d6430d10
|
@ -106,10 +106,8 @@ def get_backupdb(dbfile, stderr=sys.stderr,
|
||||||
(sqlite3, db) = get_db(dbfile, stderr, create_version, updaters=UPDATERS,
|
(sqlite3, db) = get_db(dbfile, stderr, create_version, updaters=UPDATERS,
|
||||||
just_create=just_create, dbname="backupdb")
|
just_create=just_create, dbname="backupdb")
|
||||||
if create_version[1] == 2:
|
if create_version[1] == 2:
|
||||||
print "ver 2!"
|
|
||||||
return BackupDB_v2(sqlite3, db)
|
return BackupDB_v2(sqlite3, db)
|
||||||
elif create_version[1] == 3:
|
elif create_version[1] == 3:
|
||||||
print "ver 3!"
|
|
||||||
return BackupDB_v3(sqlite3, db)
|
return BackupDB_v3(sqlite3, db)
|
||||||
else:
|
else:
|
||||||
print >>stderr, "invalid db schema version specified"
|
print >>stderr, "invalid db schema version specified"
|
||||||
|
|
|
@ -40,7 +40,6 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
|
||||||
return d
|
return d
|
||||||
|
|
||||||
def join(self, client_num, local_dir, invite_code):
|
def join(self, client_num, local_dir, invite_code):
|
||||||
print "INVITE CODE ", invite_code
|
|
||||||
magic_readonly_cap, dmd_write_cap = invite_code.split(magic_folder_cli.INVITE_SEPERATOR)
|
magic_readonly_cap, dmd_write_cap = invite_code.split(magic_folder_cli.INVITE_SEPERATOR)
|
||||||
d = self.do_cli_n(client_num, "magic-folder", "join", invite_code, local_dir)
|
d = self.do_cli_n(client_num, "magic-folder", "join", invite_code, local_dir)
|
||||||
def _done((rc,stdout,stderr)):
|
def _done((rc,stdout,stderr)):
|
||||||
|
@ -107,10 +106,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
|
||||||
def cleanup(self, res):
|
def cleanup(self, res):
|
||||||
d = defer.succeed(None)
|
d = defer.succeed(None)
|
||||||
if self.magicfolder is not None:
|
if self.magicfolder is not None:
|
||||||
print "CLEANUP"
|
|
||||||
d.addCallback(lambda ign: self.magicfolder.finish(for_tests=True))
|
d.addCallback(lambda ign: self.magicfolder.finish(for_tests=True))
|
||||||
else:
|
|
||||||
print "cannot CLEANUP self.magicfolder is None"
|
|
||||||
d.addCallback(lambda ign: res)
|
d.addCallback(lambda ign: res)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue