mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Pylint: remove unnecessary-semicolon
Reviewed-By: Petr Spacek <pspacek@redhat.com> Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
This commit is contained in:
@@ -344,7 +344,7 @@ def _aci_to_kw(ldap, a, test=False, pkey_only=False):
|
|||||||
if _type_map[k] == target:
|
if _type_map[k] == target:
|
||||||
kw['type'] = unicode(k)
|
kw['type'] = unicode(k)
|
||||||
found = True
|
found = True
|
||||||
break;
|
break
|
||||||
if not found:
|
if not found:
|
||||||
if target.startswith('('):
|
if target.startswith('('):
|
||||||
kw['filter'] = unicode(target)
|
kw['filter'] = unicode(target)
|
||||||
@@ -792,7 +792,7 @@ class aci_find(crud.Search):
|
|||||||
for k in _type_map.keys():
|
for k in _type_map.keys():
|
||||||
if _type_map[k] == target and kw['type'] == k:
|
if _type_map[k] == target and kw['type'] == k:
|
||||||
found = True
|
found = True
|
||||||
break;
|
break
|
||||||
if not found:
|
if not found:
|
||||||
try:
|
try:
|
||||||
results.remove(a)
|
results.remove(a)
|
||||||
|
@@ -1079,7 +1079,7 @@ class MemcacheSessionManager(SessionManager):
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
if not expiration: # Catch zero unix timestamps
|
if not expiration: # Catch zero unix timestamps
|
||||||
expiration = None;
|
expiration = None
|
||||||
|
|
||||||
cookie = Cookie(self.session_cookie_name, session_id,
|
cookie = Cookie(self.session_cookie_name, session_id,
|
||||||
domain=urlparse(api.env.xmlrpc_uri).netloc,
|
domain=urlparse(api.env.xmlrpc_uri).netloc,
|
||||||
|
@@ -252,7 +252,7 @@ class NSSConnection(httplib.HTTPConnection, NSSAddressFamilyFallback):
|
|||||||
|
|
||||||
def password_callback(self, slot, retry, password):
|
def password_callback(self, slot, retry, password):
|
||||||
if not retry and password: return password
|
if not retry and password: return password
|
||||||
return getpass.getpass("Enter password for %s: " % slot.token_name);
|
return getpass.getpass("Enter password for %s: " % slot.token_name)
|
||||||
|
|
||||||
def handshake_callback(self, sock):
|
def handshake_callback(self, sock):
|
||||||
"""
|
"""
|
||||||
|
@@ -330,7 +330,7 @@ class WSGIExecutioner(Executioner):
|
|||||||
lang_reg = lang_reg_w_q.split(';')[0]
|
lang_reg = lang_reg_w_q.split(';')[0]
|
||||||
lang_ = lang_reg.split('-')[0]
|
lang_ = lang_reg.split('-')[0]
|
||||||
if '-' in lang_reg:
|
if '-' in lang_reg:
|
||||||
reg = lang_reg.split('-')[1].upper();
|
reg = lang_reg.split('-')[1].upper()
|
||||||
else:
|
else:
|
||||||
reg = lang_.upper()
|
reg = lang_.upper()
|
||||||
os.environ['LANG'] = '%s_%s' % (lang_, reg)
|
os.environ['LANG'] = '%s_%s' % (lang_, reg)
|
||||||
|
@@ -110,8 +110,8 @@ class test_automember(UI_driver):
|
|||||||
})
|
})
|
||||||
|
|
||||||
# Add hosts
|
# Add hosts
|
||||||
self.add_record('host', host_util.get_data("web1", domain));
|
self.add_record('host', host_util.get_data("web1", domain))
|
||||||
self.add_record('host', host_util.get_data("web2", domain));
|
self.add_record('host', host_util.get_data("web2", domain))
|
||||||
|
|
||||||
# Add an automember rule
|
# Add an automember rule
|
||||||
self.add_record(
|
self.add_record(
|
||||||
|
@@ -260,7 +260,7 @@ cnamerev_hostname = u'129.128/25.70.16.172.in-addr.arpa.'
|
|||||||
ptr_revzone3 = u'129'
|
ptr_revzone3 = u'129'
|
||||||
ptr_revzone3_dnsname = DNSName(ptr_revzone3)
|
ptr_revzone3_dnsname = DNSName(ptr_revzone3)
|
||||||
ptr_revzone3_dn = DN(('idnsname',cnamerev), revzone3_classless2_dn)
|
ptr_revzone3_dn = DN(('idnsname',cnamerev), revzone3_classless2_dn)
|
||||||
ptr_revzone3_hostname = zone3_ns2;
|
ptr_revzone3_hostname = zone3_ns2
|
||||||
|
|
||||||
relnxname = u'does-not-exist-test'
|
relnxname = u'does-not-exist-test'
|
||||||
absnxname = u'does.not.exist.test.'
|
absnxname = u'does.not.exist.test.'
|
||||||
|
1
pylintrc
1
pylintrc
@@ -44,7 +44,6 @@ disable=
|
|||||||
super-init-not-called,
|
super-init-not-called,
|
||||||
undefined-loop-variable,
|
undefined-loop-variable,
|
||||||
unnecessary-lambda,
|
unnecessary-lambda,
|
||||||
unnecessary-semicolon,
|
|
||||||
unused-argument,
|
unused-argument,
|
||||||
unused-variable,
|
unused-variable,
|
||||||
useless-else-on-loop,
|
useless-else-on-loop,
|
||||||
|
Reference in New Issue
Block a user