Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/loggers/system.py

    r3411 r3413  
    88# the Free Software Foundation, either version 3 of the License, or 
    99# (at your option) any later version. 
    10 #  
     10# 
    1111# This program is distributed in the hope that it will be useful, 
    1212# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1414# GNU General Public License for more details. 
    15 #  
     15# 
    1616# You should have received a copy of the GNU General Public License 
    1717# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     
    3636        """Opens the logging subsystem.""" 
    3737        syslog.openlog("PyKota", 0, syslog.LOG_LPR) 
    38          
    39     def __del__(self) :     
     38 
     39    def __del__(self) : 
    4040        """Ensures the logging subsystem is closed.""" 
    4141        syslog.closelog() 
    42          
     42 
    4343    def log_message(self, message, level="info") : 
    4444        """Sends the message to syslog.""" 
     
    4747                                                      "DEBUG").upper(), \ 
    4848                           syslog.LOG_DEBUG) 
    49         try :                    
     49        try : 
    5050            message = message.strip().encode(sys.stdout.encoding or "UTF-8", \ 
    5151                                             "replace") 
    52         except UnicodeDecodeError :     
     52        except UnicodeDecodeError : 
    5353            pass 
    5454        syslog.syslog(priority, "(PID %s) : %s" % (os.getpid(), message))