1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-13 22:28:33 +00:00

fucking colons...

This commit is contained in:
Jared Henry Oviatt 2015-05-06 19:45:12 -07:00
parent b3176962c8
commit b6057ad335

View File

@ -36,7 +36,7 @@ def get_fuckups(): # returns a dictionary of your fuckups from ~/.thefuck/my_fuc
return fuckups
def add_fuckup(fucked, fixed)
def add_fuckup(fucked, fixed):
print 'Adding fucked: ' + fucked + ' as fixed: ' + fixed
@ -50,7 +50,7 @@ def add_fuckup(fucked, fixed)
return
def remove_fuckup(fuckup)
def remove_fuckup(fuckup):
print 'Removing fucked: ' + fucked + ' as fixed: ' + fixed
@ -65,7 +65,7 @@ def remove_fuckup(fuckup)
FILE = open(FILENAME, 'w')
for number, line in enumerate(lines)
for number, line in enumerate(lines):
if line != fuckup and line != fuckup_cmd:
FILE.write(line)
elif line == fuckup: