Ticket #2006: 0001-typo-switch-to-os.remove.patch

File 0001-typo-switch-to-os.remove.patch, 1.1 KB (added by walter, 14 years ago)

fixed typo, switched to os.remove

  • extensions/cpsection/touchpad/model.py

    From ced9b532c58e88736b65b572bf9276ed4ef93b50 Mon Sep 17 00:00:00 2001
    From: Walter Bender <walter@sugarlabs.org>
    Date: Sun, 23 May 2010 20:57:21 -0400
    Subject: [PATCH] typo, switch to os.remove
    
    ---
     extensions/cpsection/touchpad/model.py |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/extensions/cpsection/touchpad/model.py b/extensions/cpsection/touchpad/model.py
    index 8c17cb9..4e29651 100644
    a b  
    1515# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1616#
    1717from gettext import gettext as _
    18 from os import system, path
     18from os import system, path, remove
    1919import gconf
    2020
    2121_CAPACITIVE = 0
    def get_touchpad(): 
    3838def set_touchpad(touchpad):
    3939    """Set the touchpad mode."""
    4040    if touchpad == _CAPACITIVE:
    41         if path.exisits(_flag_path):
    42             system("rm %s" % (_flag_path))
     41        if path.exists(_flag_path):
     42            remove(_flag_path)
    4343        system("echo 0 > %s" % (_node_path))
    4444    else:
    4545        system("touch %s" % (_flag_path))