Commits

Brad Montgomery committed 6c9db1b

hoping to play nice with unicode

Comments (0)

Files changed (1)

             self._scrape()
         if self.scraped_content:
             # look for a string like: "bkmontgomery / python-bitbucket (fork of jmoiron / python-bitbucket)"
-            search_string = "%s / %s (fork of" % (self.username, self.slug)
-            return self.scraped_content.find(search_string) > 0
+            search_string = u"%s / %s (fork of" % (self.username, self.slug)
+            return self.scraped_content.decode("utf8").find(search_string) > 0
 
     def __repr__(self):
         return '<Repository: %s\'s %s>' % (self.username, self.slug)