[ocrfeeder] cliutils: Delete trailing whitespaces



commit 754e4714d108a3a503c1290d9869b327f2c0de5e
Author: Joaquim Rocha <jrocha igalia com>
Date:   Thu Jul 1 10:52:39 2010 +0200

    cliutils: Delete trailing whitespaces

 util/cliutils.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/util/cliutils.py b/util/cliutils.py
index 1e8f829..5a602bc 100644
--- a/util/cliutils.py
+++ b/util/cliutils.py
@@ -3,7 +3,7 @@
 ###########################################################################
 #    OCRFeeder - The complete OCR suite
 #    Copyright (C) 2009 Joaquim Rocha
-# 
+#
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation, either version 3 of the License, or
@@ -21,13 +21,13 @@
 import os.path
 
 class ArgsRetriever:
-    
+
     def __init__(self, args_list, command_prefix = '--', discard_first_arg = True):
         self.args_list = args_list
         self.command_prefix = command_prefix
         if discard_first_arg:
             del self.args_list[0]
-    
+
     def getParams(self, command, failure_action = None):
         args = list(self.args_list)
         command_index = self.getCommandIndex(command)
@@ -40,7 +40,7 @@ class ArgsRetriever:
         if next_command == -1:
             return args
         return args[:next_command]
-    
+
     def getNextCommand(self, args_list):
         i = 0
         for arg in args_list:
@@ -48,7 +48,7 @@ class ArgsRetriever:
                 return i
             i += 1
         return -1
-    
+
     def getCommandIndex(self, command):
         command = command.strip(self.command_prefix)
         i = 0
@@ -57,6 +57,6 @@ class ArgsRetriever:
                 return i
             i += 1
         return -1
-    
+
     def hasCommand(self, command):
-        return self.getCommandIndex(command) != -1
\ No newline at end of file
+        return self.getCommandIndex(command) != -1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]