Commits

Lynn Rees committed 19ecb02

- work with new byte/unicode converter

Comments (0)

Files changed (4)

crossroads/low.py

 
     def _set(self, key, value):
         opt_key, opt_type = self._opt_type(key)
-        if not value  and isstring(value):
+        if not value and isstring(value):
             new_value = c_char()
         else:
             new_value = opt_type(value)

crossroads/message.py

 
 from ctypes import sizeof, string_at, c_ubyte, byref, c_size_t, c_char, c_int
 
-from stuf.base import norm
 from stuf.six import PY3, tobytes, tounicode, u, b, isunicode
 
 from . import lowest as xs
         return tobytes(string_at(byref(self.msg), self.size))
 
     def __unicode__(self):
-        return u('') if self.msg is None else tounicode(norm(self.__bytes__()))
+        return u('') if self.msg is None else tounicode(self.__bytes__())
 
     def __len__(self):
         return self.size
 # -*- coding: utf-8 -*-
 '''setup for crossroads'''
 
-import sys
 from os import getcwd
 from os.path import join
 from setuptools import setup, find_packages
 [tox]
-envlist = py27,py32,py33,pypy,py31
+envlist = py27,py31,py32,py33,pypy
 
 [testenv]
 deps=