mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Forgot a file in the last commit.
This commit is contained in:
7
misc.py
7
misc.py
@@ -23,7 +23,6 @@ import locale
|
||||
import gettext
|
||||
import time
|
||||
import sys
|
||||
import re
|
||||
from subprocess import *
|
||||
|
||||
if __name__ == '__main__':
|
||||
@@ -261,11 +260,6 @@ def error(parent, message):
|
||||
dialog.run()
|
||||
dialog.destroy()
|
||||
|
||||
def shell_escape(data):
|
||||
escape_re = re.compile('(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF])')
|
||||
print 'data is',data
|
||||
return escape_re.sub("\\\\", data)
|
||||
|
||||
class LogWriter():
|
||||
""" A class to provide timestamped logging. """
|
||||
def __init__(self):
|
||||
@@ -273,7 +267,6 @@ class LogWriter():
|
||||
self.eol = True
|
||||
self.logging_enabled = True
|
||||
|
||||
|
||||
def __del__(self):
|
||||
self.file.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user