Commits

Jason R. Coombs committed 2a9c5c0

Fix failure on Python 3 where bytes are repr'd.

  • Participants
  • Parent commits eb24ebb
  • Tags 1.1.2

Comments (0)

Files changed (1)

openpack/basepack.py

 
 	@staticmethod
 	def _generate_id():
-		return "d%s" % codecs.encode(os.urandom(4), 'hex')
+		return "d%s" % codecs.encode(os.urandom(4), 'hex').decode()
 
 class Relationships(Part):
 	"""A collection of Package or Part Relationships."""