pylint fixes

This commit is contained in:
Dan Williams 2006-06-20 09:39:36 -04:00
parent c92cf346f9
commit e9f20cfe0f
11 changed files with 4 additions and 17 deletions

View File

@ -1,8 +1,6 @@
import os
import random
import base64
from sugar import env
from sugar.presence import Service
from sugar.presence import Buddy
from sugar.presence import PresenceService

View File

@ -1,7 +1,6 @@
import logging
import xml.sax.saxutils
import dbus
import pygtk
pygtk.require('2.0')
import gtk

View File

@ -22,7 +22,7 @@ class ChatWindow(gtk.Window):
if event.keyval == gtk.keysyms.s and \
event.state & gtk.gdk.CONTROL_MASK:
if self._chat.get_mode() == Chat.SKETCH_MODE:
self._chat.set_mode(Chat.TEXT_MODE)
self._chat.set_mode(Chat.TEXT_MODE)
elif self._chat.get_mode() == Chat.TEXT_MODE:
self._chat.set_mode(Chat.SKETCH_MODE)
self._chat.set_mode(Chat.SKETCH_MODE)

View File

@ -1,7 +1,6 @@
import logging
from sugar.chat.Chat import Chat
from sugar.presence.Service import Service
from sugar.p2p.Stream import Stream
from sugar.presence.PresenceService import PresenceService

View File

@ -1,5 +1,4 @@
from sugar.p2p import network
from sugar.presence.Service import Service
class Notifier:
def __init__(self, service):

View File

@ -1,7 +1,6 @@
import socket
import logging
from sugar.presence.Service import Service
from sugar.p2p.Notifier import Notifier
from sugar.p2p.model.AbstractModel import AbstractModel
from sugar.p2p import network

View File

@ -2,11 +2,8 @@ import threading
import avahi, dbus, dbus.glib, dbus.dbus_bindings, gobject
import Buddy
import Service
import os
import string
import random
import logging
from sugar import util
from sugar import env
def _get_local_ip_address(ifname):

View File

@ -1,6 +1,5 @@
import avahi
from sugar import util
import string
import dbus
def _txt_to_dict(txt):

View File

@ -1,4 +1,3 @@
import os
import sys
import logging

View File

@ -107,7 +107,7 @@ class PresenceWindow(gtk.Window):
def _on_buddyList_buddy_double_clicked(self, view, *args):
""" Select the chat for this buddy or group """
(model, aniter) = widget.get_selection().get_selected()
(model, aniter) = view.get_selection().get_selected()
chat = None
buddy = view.get_model().get_value(aniter, self._MODEL_COL_BUDDY)
if buddy and not self._chats.has_key(buddy):

View File

@ -5,12 +5,10 @@ import pango
import dbus
import cgi
import xml.sax.saxutils
import re
import gobject
import google
from sugar.presence.PresenceService import PresenceService
from sugar.presence import Service
from sugar.browser import BrowserActivity
_COLUMN_TITLE = 0
@ -173,7 +171,7 @@ class StartPage(gtk.HBox):
self._pservice.start()
self._pservice.track_service_type(BrowserActivity._BROWSER_ACTIVITY_TYPE)
if self._pservice.get_owner():
self._on_buddy_appeared_cb(pservice, self._pservice.get_owner())
self._on_buddy_appeared_cb(self._pservice, self._pservice.get_owner())
vbox = gtk.VBox()