Răsfoiți Sursa

Merge pull request #6 from cjstep/patch-1

Add closing paren to tuple expression
Joe Crobak 10 ani în urmă
părinte
comite
b7284a412c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      parquet/bitstring.py

+ 1 - 1
parquet/bitstring.py

@@ -16,5 +16,5 @@ class BitString(object):
 		except AttributeError:
 			if key < 0 or key >= length:
 				raise IndexError()
-			byte_index, bit_offset = divmod(self.offset + key), 8)
+			byte_index, bit_offset = (divmod(self.offset + key), 8)
 			return self.bytes[byte_index] & SINGLE_BIT_MASK[bit_offset]