]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
change spelling module variable INVITE_SEPARATOR
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 19:30:05 +0000 (12:30 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Mon, 20 Jul 2015 23:48:10 +0000 (00:48 +0100)
src/allmydata/scripts/magic_folder_cli.py
src/allmydata/test/test_cli_magic_folder.py

index 098bace3c3a13c47b8644a72e921992c490209cd..2b2aca38e60f4b204cc5ace3eca5af07810b58d2 100644 (file)
@@ -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
index 9894ed93c5e42d04ae22d045fc80f2d8ad7eab36..a1a03c2d381de9fd71ea0c735eaf5677c9661d78 100644 (file)
@@ -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)