소스 검색

Python2x3-ized a couple of values

dstromberg 13 년 전
부모
커밋
c3950881ba
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      bloom_filter_mod.py

+ 2 - 2
bloom_filter_mod.py

@@ -183,7 +183,7 @@ class File_seek_backend:
 		if was_char:
 			os.write(self.file_, chr(byte))
 		else:
-			char = bytes([ byte ])
+			char = python2x3.intlist_to_binary([ byte ])
 			os.write(self.file_, char)
 
 	def clear(self, bitno):
@@ -204,7 +204,7 @@ class File_seek_backend:
 		if was_char:
 			os.write(chr(byte))
 		else:
-			char = bytes([ byte ])
+			char = python2x3.intlist_to_binary([ byte ])
 			os.write(char)
 
 	# These are quite slow ways to do iand and ior, but they should work, and a faster version is going to take more time