More whitespace mini fixes.

This commit is contained in:
Éric Araujo 2010-04-08 01:10:17 +02:00
parent cf0bc0b478
commit dd6062319a
12 changed files with 23 additions and 35 deletions

View File

@ -8,4 +8,3 @@ if os.getcwd().endswith('dev'):
os.chdir('../../src/') # we were in scripts/dev os.chdir('../../src/') # we were in scripts/dev
os.system("pylint --include-ids=y --additional-builtins='_' --disable-msg=C0103,C0111,W0703,W0511,W0142,W0613,R0201 --disable-checker=design " + "".join(sys.argv[1:])) os.system("pylint --include-ids=y --additional-builtins='_' --disable-msg=C0103,C0111,W0703,W0511,W0142,W0613,R0201 --disable-checker=design " + "".join(sys.argv[1:]))

View File

@ -52,7 +52,8 @@ if 'gtk' in os.listdir('.'):
opts = { opts = {
'py2exe': { 'py2exe': {
# ConfigParser,UserString,roman are needed for docutils # ConfigParser,UserString,roman are needed for docutils
'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,ConfigParser,UserString', 'includes': ('pango,atk,gobject,cairo,pangocairo,gtk.keysyms,'
'encodings,encodings.*,ConfigParser,UserString'),
'dll_excludes': [ 'dll_excludes': [
'iconv.dll', 'intl.dll', 'libatk-1.0-0.dll', 'iconv.dll', 'intl.dll', 'libatk-1.0-0.dll',
'libgdk_pixbuf-2.0-0.dll', 'libgdk-win32-2.0-0.dll', 'libgdk_pixbuf-2.0-0.dll', 'libgdk-win32-2.0-0.dll',
@ -78,7 +79,6 @@ setup(
url='http://www.gajim.org/', url='http://www.gajim.org/',
download_url='http://www.gajim.org/downloads.php', download_url='http://www.gajim.org/downloads.php',
license='GPL', license='GPL',
windows=[{'script': 'src/gajim.py', windows=[{'script': 'src/gajim.py',
'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}, 'icon_resources': [(1, 'data/pixmaps/gajim.ico')]},
{'script': 'src/history_manager.py', {'script': 'src/history_manager.py',

View File

@ -615,4 +615,3 @@ class MultipleDataForm(DataForm):
# record.setName('reported') # record.setName('reported')
# self.addChild(node=record) # self.addChild(node=record)
# return locals() # return locals()

View File

@ -28,28 +28,27 @@ These constants have been obtained from RFC2409 and RFC3526.
import string import string
generators = [ None, # one to get the right offset generators = [None, # one to get the right offset
2, 2,
2, 2,
None, None,
None, None,
2, 2,
None, None,
None, None,
None, None,
None, None,
None, None,
None, None,
None, None,
None, None,
2, # group 14 2, # group 14
2, 2,
2, 2,
2, 2,
2, 2]
]
hex_primes = [ None, hex_primes = [None,
# group 1 # group 1
'''FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 '''FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1

View File

@ -97,4 +97,3 @@ class VideoOutputManager(DeviceManager):
# ximagesink # ximagesink
self.detect_element('ximagesink', _('X Window System (without Xv)')) self.detect_element('ximagesink', _('X Window System (without Xv)'))
self.detect_element('autovideosink', _('Autodetect')) self.detect_element('autovideosink', _('Autodetect'))

View File

@ -438,7 +438,7 @@ class SASL(PlugIn):
self.scram_soup = 'n=' + self.username + ',r=' + nonce self.scram_soup = 'n=' + self.username + ',r=' + nonce
self.scram_gs2 = 'n,,' # No CB yet. self.scram_gs2 = 'n,,' # No CB yet.
sasl_data = (self.scram_gs2 + self.scram_soup).encode('base64').\ sasl_data = (self.scram_gs2 + self.scram_soup).encode('base64').\
replace('\n','') replace('\n', '')
node = Node('auth', attrs={'xmlns': NS_SASL, node = Node('auth', attrs={'xmlns': NS_SASL,
'mechanism': self.mechanism}, payload=[sasl_data]) 'mechanism': self.mechanism}, payload=[sasl_data])
elif self.mechanism == 'DIGEST-MD5': elif self.mechanism == 'DIGEST-MD5':

View File

@ -57,4 +57,3 @@ def normalise_attr(val):
def normalise_text(val): def normalise_text(val):
return val.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('\r', '&#xD;') return val.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('\r', '&#xD;')

View File

@ -543,4 +543,3 @@ class GlibIdleQueue(IdleQueue):
def process(self): def process(self):
self._check_time_events() self._check_time_events()

View File

@ -330,4 +330,3 @@ class Zeroconf:
except pybonjour.BonjourError: except pybonjour.BonjourError:
return False return False
return True return True

View File

@ -4956,4 +4956,3 @@ class VoIPCallReceivedDialog(object):
session.reject_content(content) session.reject_content(content)
dialog.destroy() dialog.destroy()

View File

@ -534,4 +534,3 @@ class IPythonView(ConsoleView, IterableIPShell):
if rv: rv = rv.strip('\n') if rv: rv = rv.strip('\n')
self.showReturned(rv) self.showReturned(rv)
self.cout.truncate(0) self.cout.truncate(0)

View File

@ -461,6 +461,3 @@ def HASMETHOD(method):
return testFn return testFn
CALLABLE = callable CALLABLE = callable