From fe3490bab8046b1c4da7d7e0f8339797f008b146 Mon Sep 17 00:00:00 2001 From: David Stainton Date: Wed, 15 Jul 2015 12:30:05 -0700 Subject: [PATCH] change spelling module variable INVITE_SEPARATOR --- src/allmydata/scripts/magic_folder_cli.py | 6 +++--- src/allmydata/test/test_cli_magic_folder.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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) -- 2.45.2