pylint fixes
This commit is contained in:
parent
c92cf346f9
commit
e9f20cfe0f
@ -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
|
||||
|
@ -1,7 +1,6 @@
|
||||
import logging
|
||||
import xml.sax.saxutils
|
||||
|
||||
import dbus
|
||||
import pygtk
|
||||
pygtk.require('2.0')
|
||||
import gtk
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
from sugar.p2p import network
|
||||
from sugar.presence.Service import Service
|
||||
|
||||
class Notifier:
|
||||
def __init__(self, service):
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -1,6 +1,5 @@
|
||||
import avahi
|
||||
from sugar import util
|
||||
import string
|
||||
import dbus
|
||||
|
||||
def _txt_to_dict(txt):
|
||||
|
@ -1,4 +1,3 @@
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user