]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
minor corrections
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 19:35:10 +0000 (12:35 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:02 +0000 (17:56 +0100)
src/allmydata/scripts/magic_folder_cli.py

index 08c47767101336d875e54d8070d1482a28da44f7..498de58a2cd6555571e7000eec00334d8b004e20 100644 (file)
@@ -23,7 +23,7 @@ class CreateOptions(BasedirOptions):
         if self.nickname and not self.localdir:
             raise usage.UsageError("If NICKNAME is specified then LOCALDIR must also be specified.")
         node_url_file = os.path.join(self['node-directory'], "node.url")
-        self['node-url'] = open(node_url_file, "r").read().strip()
+        self['node-url'] = fileutil.read(node_url_file).strip()
 
 def create(options):
     from allmydata.scripts import tahoe_add_alias
@@ -38,7 +38,7 @@ def create(options):
         invite_options.nickname = options.nickname
         invite_options.stdin = StringIO("")
         invite_options.stdout = StringIO()
-        invite_options.strerr = StringIO()
+        invite_options.stderr = StringIO()
         rc = invite(invite_options)
         if rc != 0:
             print >>options.stderr, "magic-folder: failed to invite after create\n"