Commit b8bad4e0 by William Tisäter

Use six.u() instead of six.b()

parent 35d70f50
...@@ -131,7 +131,7 @@ class GeoIP(GeoIPBase): ...@@ -131,7 +131,7 @@ class GeoIP(GeoIPBase):
for i in range(const.STRUCTURE_INFO_MAX_SIZE): for i in range(const.STRUCTURE_INFO_MAX_SIZE):
delim = self._filehandle.read(3) delim = self._filehandle.read(3)
if delim == six.b(chr(255) * 3): if delim == six.u(chr(255) * 3):
self._databaseType = ord(self._filehandle.read(1)) self._databaseType = ord(self._filehandle.read(1))
if (self._databaseType >= 106): if (self._databaseType >= 106):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment