remove some currently unused imports and split up some overly long lines

This commit is contained in:
Chris Jones 2009-08-18 13:54:46 +01:00
parent 0b90e29b16
commit d6ac973f54
1 changed files with 6 additions and 5 deletions

View File

@ -6,11 +6,8 @@
import sys import sys
import pygtk import pygtk
pygtk.require('2.0') pygtk.require('2.0')
import gobject
import gtk import gtk
import pango
from cwd import get_pid_cwd, get_default_cwd
from util import dbg, err, gerr from util import dbg, err, gerr
from config import Config from config import Config
from titlebar import Titlebar from titlebar import Titlebar
@ -22,6 +19,7 @@ except ImportError:
gerr('You need to install python bindings for libvte') gerr('You need to install python bindings for libvte')
sys.exit(1) sys.exit(1)
# pylint: disable-msg=R0904
class Terminal(gtk.VBox): class Terminal(gtk.VBox):
"""Class implementing the VTE widget and its wrappings""" """Class implementing the VTE widget and its wrappings"""
@ -97,9 +95,12 @@ class Terminal(gtk.VBox):
"(www|ftp)[" + hostchars + "]*\.[" + hostchars + "(www|ftp)[" + hostchars + "]*\.[" + hostchars +
".]+(:[0-9]+)?(" + urlpath + ")?" + rboundry + "/?") ".]+(:[0-9]+)?(" + urlpath + ")?" + rboundry + "/?")
self.matches['email'] = self._vte.match_add (lboundry + self.matches['email'] = self._vte.match_add (lboundry +
"(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9][a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+[.a-zA-Z0-9-]*" + rboundry) "(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9]\
[a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+\
[.a-zA-Z0-9-]*" + rboundry)
self.matches['nntp'] = self._vte.match_add (lboundry + self.matches['nntp'] = self._vte.match_add (lboundry +
'''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry) '''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@\
[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry)
# if the url looks like a Launchpad changelog closure entry # if the url looks like a Launchpad changelog closure entry
# LP: #92953 - make it a url to http://bugs.launchpad.net # LP: #92953 - make it a url to http://bugs.launchpad.net
self.matches['launchpad'] = self._vte.match_add ( self.matches['launchpad'] = self._vte.match_add (