Small fixes thanks to `pyflakes`.
This commit is contained in:
parent
b936fdf867
commit
c52b9ea662
|
@ -33,7 +33,6 @@ import common.xmpp
|
||||||
from common import GnuPG
|
from common import GnuPG
|
||||||
from common import helpers
|
from common import helpers
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from common import dataforms
|
|
||||||
from common import atom
|
from common import atom
|
||||||
from common.commands import ConnectionCommands
|
from common.commands import ConnectionCommands
|
||||||
from common.pubsub import ConnectionPubSub
|
from common.pubsub import ConnectionPubSub
|
||||||
|
@ -726,7 +725,7 @@ class ConnectionDisco:
|
||||||
node = q.getAttr('node')
|
node = q.getAttr('node')
|
||||||
|
|
||||||
if self.commandQuery(con, iq_obj):
|
if self.commandQuery(con, iq_obj):
|
||||||
raise NodeProcessed
|
raise common.xmpp.NodeProcessed
|
||||||
|
|
||||||
elif node is None:
|
elif node is None:
|
||||||
iq = iq_obj.buildReply('result')
|
iq = iq_obj.buildReply('result')
|
||||||
|
|
|
@ -149,7 +149,7 @@ class DataField(ExtendedNode):
|
||||||
def required():
|
def required():
|
||||||
'''Controls whether this field required to fill. Boolean.'''
|
'''Controls whether this field required to fill. Boolean.'''
|
||||||
def fget(self):
|
def fget(self):
|
||||||
return boolean(self.getTag('required'))
|
return bool(self.getTag('required'))
|
||||||
def fset(self, value):
|
def fset(self, value):
|
||||||
t = self.getTag('required')
|
t = self.getTag('required')
|
||||||
if t and not value:
|
if t and not value:
|
||||||
|
@ -405,9 +405,9 @@ class MultipleDataForm(DataForm):
|
||||||
self.delChild(record)
|
self.delChild(record)
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
def iter_records():
|
def iter_records(self):
|
||||||
for record in self.getTags('item'):
|
for record in self.getTags('item'):
|
||||||
yield item
|
yield record
|
||||||
|
|
||||||
@nested_property
|
@nested_property
|
||||||
def recorded():
|
def recorded():
|
||||||
|
|
|
@ -23,11 +23,9 @@ multiple - these which may contain more data (with <recorded/> element)."""
|
||||||
# TODO: remove tabs from dialog
|
# TODO: remove tabs from dialog
|
||||||
|
|
||||||
import gtk
|
import gtk
|
||||||
import pango
|
|
||||||
|
|
||||||
import gtkgui_helpers
|
import gtkgui_helpers
|
||||||
|
|
||||||
import common.xmpp as xmpp
|
|
||||||
import common.dataforms as dataforms
|
import common.dataforms as dataforms
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
|
|
Loading…
Reference in New Issue