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