Commits

Mark Dickinson committed 62746bf

Eliminate repeated isinstance(value, str) check.

Comments (0)

Files changed (1)

bigfloat_cython/bigfloat/core.py

             return _set_d(value)
         elif isinstance(value, str):
             return set_str2(value.strip(), 10)
-        elif isinstance(value, str):
-            value = value.strip().encode('ascii')
-            return set_str2(value, 10)
         elif isinstance(value, int):
             return set_str2('%x' % value, 16)
         elif isinstance(value, BigFloat):