Skip to content

Commit

Permalink
display Collection name as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
d-w-moore committed Oct 17, 2024
1 parent ea9fc7c commit cd7133b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irods/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ def normalize_path(*paths, **kw_):
return irods.path.iRODSPath(*paths, absolute = absolute)

def __repr__(self):
return "<iRODSCollection {id} {name}>".format(id = self.id, name = self.name.encode('utf-8'))
return f"<iRODSCollection {self.id} {self.name}>"
2 changes: 1 addition & 1 deletion irods/test/collection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_move_coll_to_coll(self):


def test_repr_coll(self):
coll_name = self.test_coll.name.encode('utf-8')
coll_name = self.test_coll.name
coll_id = self.test_coll.id

self.assertEqual(
Expand Down

0 comments on commit cd7133b

Please sign in to comment.