piqueserver / pyenet

A python wrapper for the ENet library (this fork is the source for the pypi package)
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

Use default encoding for Address() creation with non-byte host argument #5

Open susnux opened 4 years ago

susnux commented 4 years ago

The documentation says that Addess() accepts a str, but if a string is given pyenet will throw expected bytes, str found. So using default encoding should fix this.