1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-21 12:28:41 +00:00

Use spaces instead of tabs

This is more common in python and follows other rules usage.
This commit is contained in:
mcarton 2015-06-26 11:27:04 +02:00
parent 3203d57b36
commit 01ce65047a

View File

@ -5,13 +5,11 @@
# The file ~/github.com does not exist.
# Perhaps you meant 'http://github.com'?
#
#
def match(command, settings):
return (command.script.startswith('open')
and (
# Wanted to use this:
# 'http' in command.stderr
'.com' in command.script
or '.net' in command.script
or '.org' in command.script
@ -20,5 +18,6 @@ def match(command, settings):
or '.se' in command.script
or '.edu' in command.script))
def get_new_command(command, settings):
return 'open http://' + command.script[5:]