Use spaces instead of tabs

The is more common in python and follows other rules usage.
This commit is contained in:
mcarton
2015-06-26 14:08:25 +02:00
parent 40fe604adc
commit 7173e0dbad
10 changed files with 64 additions and 64 deletions
+6 -5
View File
@@ -1,13 +1,14 @@
# Fixes common java command mistake
#
#
# Example:
# > java foo.java
# Error: Could not find or load main class foo.java
#
def match(command, settings):
return (command.script.startswith ('java ')
and command.script.endswith ('.java'))
return (command.script.startswith('java ')
and command.script.endswith('.java'))
def get_new_command(command, settings):
return command.script[:-5]
return command.script[:-5]
+7 -7
View File
@@ -1,15 +1,15 @@
# Appends .java when compiling java files
#
#
# Example:
# > javac foo
# error: Class names, 'foo', are only accepted if annotation
# error: Class names, 'foo', are only accepted if annotation
# processing is explicitly requested
#
#
def match(command, settings):
return (command.script.startswith ('javac ')
and not command.script.endswith('.java'))
return (command.script.startswith('javac ')
and not command.script.endswith('.java'))
def get_new_command(command, settings):
return command.script + '.java'
return command.script + '.java'
+5 -6
View File
@@ -1,15 +1,14 @@
# Appends .py when compiling python files
#
#
# Example:
# > python foo
# error: python: can't open file 'foo': [Errno 2] No such file or directory
#
#
def match(command, settings):
return (command.script.startswith ('python ')
and not command.script.endswith('.py'))
return (command.script.startswith('python ')
and not command.script.endswith('.py'))
def get_new_command(command, settings):
return command.script + '.py'
return command.script + '.py'