Skip to content

Commit 9efecc5

Browse files
committed
Fix spaces
1 parent 45df3f0 commit 9efecc5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

codext/crypto/railfence.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def __buildf(text, rails, offset = 0, up = 0) :
2828
rail = rails - offset - 1
2929
else :
3030
dr = 1
31+
3132
f = [["#"] * l for i in range(rails)]
33+
3234
for x in range(l) :
3335
f[rail][x] = text[x]
3436
if rail >= rails - 1:
@@ -41,7 +43,7 @@ def __buildf(text, rails, offset = 0, up = 0) :
4143
def railfence_encode(rails = 3, offset = 0, up = 0) :
4244
def encode(text, errors="strict") :
4345
c,l = '', len(text)
44-
f = __buildf(text,rails,offset, up)
46+
f = __buildf(text, rails, offset, up)
4547
for r in range(rails) :
4648
for x in range(l) :
4749
if f[r][x] != '#' :

0 commit comments

Comments
 (0)