浏览代码

format with black

master
Dimitri Merejkowsky 5 年前
父节点
当前提交
b0d21a60d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      sources/stegano/stegano.py

+ 1
- 0
sources/stegano/stegano.py 查看文件

@@ -28,6 +28,7 @@ def by_chunk(iterable, size, fillvalue=0):
yield chunk
chunk = []


def set_bit(old_byte, new_bit):
b = list(bin(old_byte))
b[-1] = str(new_bit)