This website works better with JavaScript.
Home
Explore
Help
Sign In
E2L_Ivry
/
cours-python
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
format with black
master
Dimitri Merejkowsky
5 years ago
parent
ec90c32472
commit
b0d21a60d3
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
sources/stegano/stegano.py
+ 1
- 0
sources/stegano/stegano.py
View File
@@ -28,6 +28,7 @@ def by_chunk(iterable, size, fillvalue=0):
yield chunk
yield chunk
chunk = []
chunk = []
def set_bit(old_byte, new_bit):
def set_bit(old_byte, new_bit):
b = list(bin(old_byte))
b = list(bin(old_byte))
b[-1] = str(new_bit)
b[-1] = str(new_bit)