mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 12:58:07 +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 gettext
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
import re
|
|
||||||
from subprocess import *
|
from subprocess import *
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
@@ -261,11 +260,6 @@ def error(parent, message):
|
|||||||
dialog.run()
|
dialog.run()
|
||||||
dialog.destroy()
|
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():
|
class LogWriter():
|
||||||
""" A class to provide timestamped logging. """
|
""" A class to provide timestamped logging. """
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -273,7 +267,6 @@ class LogWriter():
|
|||||||
self.eol = True
|
self.eol = True
|
||||||
self.logging_enabled = True
|
self.logging_enabled = True
|
||||||
|
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.file.close()
|
self.file.close()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user