Fix flake8

This commit is contained in:
Cédric Krier committed 2013-02-24 14:07:17 +01:00
1 parent 932f31feb6
commit a3e304fe31
2 files changed
+11 -11

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ class User:
def __setup__(cls):
super(User, cls).__setup__()
cls._error_messages.update({
'set_passwd_ldap_user': \
'You can not set a password to a ldap user!',
'set_passwd_ldap_user': (
'You can not set a password to a ldap user!'),
})
@staticmethod
+9 -9
View File
@@ -25,10 +25,10 @@ requires = ['python-ldap']
for dep in info.get('depends', []):
if not re.match(r'(ir|res|webdav)(\W|$)', dep):
requires.append('trytond_%s >= %s.%s, < %s.%s' %
(dep, major_version, minor_version, major_version,
minor_version + 1))
(dep, major_version, minor_version, major_version,
minor_version + 1))
requires.append('trytond >= %s.%s, < %s.%s' %
(major_version, minor_version, major_version, minor_version + 1))
(major_version, minor_version, major_version, minor_version + 1))
setup(name='trytond_ldap_authentication',
version=info.get('version', '0.0.1'),
@@ -36,16 +36,16 @@ setup(name='trytond_ldap_authentication',
long_description=read('README'),
author='Tryton',
url='http://www.tryton.org/',
download_url="http://downloads.tryton.org/" + \
info.get('version', '0.0.1').rsplit('.', 1)[0] + '/',
download_url=("http://downloads.tryton.org/" +
info.get('version', '0.0.1').rsplit('.', 1)[0] + '/'),
package_dir={'trytond.modules.ldap_authentication': '.'},
packages=[
'trytond.modules.ldap_authentication',
'trytond.modules.ldap_authentication.tests',
],
package_data={
'trytond.modules.ldap_authentication': info.get('xml', []) \
+ ['tryton.cfg', 'locale/*.po'],
'trytond.modules.ldap_authentication': (info.get('xml', [])
+ ['tryton.cfg', 'locale/*.po']),
},
classifiers=[
'Development Status :: 5 - Production/Stable',
@@ -67,8 +67,8 @@ setup(name='trytond_ldap_authentication',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Office/Business',
'Topic :: System :: Systems Administration ' \
':: Authentication/Directory :: LDAP',
('Topic :: System :: Systems Administration '
':: Authentication/Directory :: LDAP'),
],
license='GPL-3',
install_requires=requires,