From: David Stainton Date: Wed, 15 Jul 2015 19:30:05 +0000 (-0700) Subject: change spelling module variable INVITE_SEPARATOR X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/module-simplejson.html?a=commitdiff_plain;h=f9949d7cc4d6eb52db920464aa66f851f7191486;p=tahoe-lafs%2Ftahoe-lafs.git change spelling module variable INVITE_SEPARATOR --- diff --git a/src/allmydata/scripts/magic_folder_cli.py b/src/allmydata/scripts/magic_folder_cli.py index 098bace3..2b2aca38 100644 --- a/src/allmydata/scripts/magic_folder_cli.py +++ b/src/allmydata/scripts/magic_folder_cli.py @@ -9,7 +9,7 @@ import tahoe_ls, tahoe_mv from allmydata.util import fileutil -INVITE_SEPERATOR = "~" +INVITE_SEPARATOR = "~" class CreateOptions(BasedirOptions): nickname = None @@ -134,7 +134,7 @@ def invite(options): print >>options.stderr, "magic-folder: failed to create link\n" return -1 - print >>options.stdout, "%s%s%s" % (magic_readonly_cap, INVITE_SEPERATOR, dmd_write_cap) + print >>options.stdout, "%s%s%s" % (magic_readonly_cap, INVITE_SEPARATOR, dmd_write_cap) return 0 class JoinOptions(BasedirOptions): @@ -145,7 +145,7 @@ class JoinOptions(BasedirOptions): self.local_dir = local_dir def join(options): - fields = options.invite_code.split(INVITE_SEPERATOR) + fields = options.invite_code.split(INVITE_SEPARATOR) assert len(fields) == 2 magic_readonly_cap, dmd_write_cap = fields diff --git a/src/allmydata/test/test_cli_magic_folder.py b/src/allmydata/test/test_cli_magic_folder.py index 9894ed93..a1a03c2d 100644 --- a/src/allmydata/test/test_cli_magic_folder.py +++ b/src/allmydata/test/test_cli_magic_folder.py @@ -37,7 +37,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin): return d def join(self, client_num, local_dir, 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_SEPARATOR) d = self.do_cli("magic-folder", "join", invite_code, local_dir, client_num=client_num) def _done((rc,stdout,stderr)): self.failUnless(rc == 0)