Some progress towards passing tests on Python 3.

This commit is contained in:
Itamar Turner-Trauring
2020-12-09 13:45:31 -05:00
parent 48bef7db99
commit 6b8fd2f29d
3 changed files with 24 additions and 24 deletions

View File

@ -384,8 +384,8 @@ class DirectoryNode(object):
# ro_uri is treated in the same way for consistency.
# rw_uri and ro_uri will be either None or a non-empty string.
rw_uri = rw_uri.rstrip(' ') or None
ro_uri = ro_uri.rstrip(' ') or None
rw_uri = rw_uri.rstrip(b' ') or None
ro_uri = ro_uri.rstrip(b' ') or None
try:
child = self._create_and_validate_node(rw_uri, ro_uri, name)