kutsurak / python-bitstring

Automatically exported from code.google.com/p/python-bitstring
0 stars 0 forks source link

__str__ broken for some bitstrings #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>>> s = Bits('0xabcdaaaaaaaaaaaaaaa, 0b1')
>>> s
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "bitstring/bits.py", line 562, in __repr__
    s = self.__str__()
  File "bitstring/bits.py", line 545, in __str__
    self._readbin(bits_at_end, length - bits_at_end)))
TypeError: join() takes exactly one argument (2 given)

Only a problem if it's a mix between hex and binary. Shouldn't affect 
production code, just looks really bad in interpreted sessions.

Original issue reported on code.google.com by dr.scott...@gmail.com on 21 Nov 2011 at 8:53

GoogleCodeExporter commented 9 years ago
Fixed in r.933.

Original comment by dr.scott...@gmail.com on 21 Nov 2011 at 9:09