mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
KCC: use python 2.6 compatible dictonary comprehensions
The `{k: v for k, v in whatever}` syntax is "new" in Python 2.7. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jun 12 09:46:13 CEST 2015 on sn-devel-104
This commit is contained in:
committed by
Andrew Bartlett
parent
bbe90840b9
commit
eef3dab079
@ -41,7 +41,7 @@ class NCType(object):
|
||||
(unknown, schema, domain, config, application) = range(0, 5)
|
||||
|
||||
# map the NCType enum to strings for debugging
|
||||
nctype_lut = {v: k for k, v in NCType.__dict__.items() if k[:2] != '__'}
|
||||
nctype_lut = dict((v, k) for k, v in NCType.__dict__.items() if k[:2] != '__')
|
||||
|
||||
|
||||
class NamingContext(object):
|
||||
|
Reference in New Issue
Block a user