fewer magic numbers (and a fix to upload encoding)

This commit is contained in:
meejah
2019-08-24 12:53:36 -06:00
parent 20f907f5d3
commit 0f6d6659e9
2 changed files with 13 additions and 7 deletions

View File

@ -17,6 +17,7 @@ from allmydata.util.configutil import (
set_config,
write_config,
)
from allmydata import client
import pytest_twisted
@ -164,6 +165,12 @@ class TahoeProcess(object):
def node_dir(self):
return self._node_dir
def get_config(self):
return client.read_config(
self._node_dir,
u"portnum",
)
def __str__(self):
return "<TahoeProcess in '{}'>".format(self._node_dir)