From 025ff47fd7ebe1313417cac13d90bf0c0546641e Mon Sep 17 00:00:00 2001 From: William Tisäter <william@defunct.cc> Date: Fri, 31 Aug 2012 23:22:54 +0000 Subject: [PATCH] Fix unicode warning --- pygeoip/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoip/__init__.py b/pygeoip/__init__.py index 5b3fa79..fccce92 100644 --- a/pygeoip/__init__.py +++ b/pygeoip/__init__.py @@ -124,7 +124,7 @@ class GeoIP(GeoIPBase): for i in range(const.STRUCTURE_INFO_MAX_SIZE): delim = self._filehandle.read(3) - if delim == six.u(chr(255) * 3): + if delim == six.b(chr(255) * 3): self._databaseType = ord(self._filehandle.read(1)) if (self._databaseType >= 106): -- libgit2 0.26.0