Skip to content

Commit

Permalink
Merge pull request #68 from thecuriousneutrino/master
Browse files Browse the repository at this point in the history
Fix Python 3 TypeErrors in t2kdm-maid.
  • Loading branch information
thecuriousneutrino authored Nov 8, 2022
2 parents 317e625 + 0b85d41 commit 74d787a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t2kdm/maid.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ def get_due(self):

def get_logname(self):
"""Get a valid filename that can be used to log the output of the task."""
return base64.b64encode(self.get_id(), altchars="+_") + ".txt"
return (
base64.b64encode(self.get_id().encode(), altchars="+_".encode()).decode()
+ ".txt"
)

def get_id(self):
"""Return a string that identifies the task."""
Expand Down

0 comments on commit 74d787a

Please sign in to comment.