From b9c48e5af7e0ca34ed9f533710b09812505c9c63 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 12 Dec 2013 01:27:36 +0100 Subject: [PATCH] backport to python 2.6, add it travis platforms and to pypi metadata --- .travis.yml | 1 + nsupdate/utils/log.py | 2 +- setup.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bacbc42..059980a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: python python: + - "2.6" - "2.7" - "pypy" install: diff --git a/nsupdate/utils/log.py b/nsupdate/utils/log.py index 6e53206..be0ee72 100644 --- a/nsupdate/utils/log.py +++ b/nsupdate/utils/log.py @@ -64,7 +64,7 @@ def _get_elementdict(dct, basename, excluded=None): if excluded is None: excluded = set() names = set(dct) - set(excluded) - return {basename + name: dct[name] for name in names} + return dict((basename + name, dct[name]) for name in names) def _build_request_info(request): diff --git a/setup.py b/setup.py index 61b6db3..c8edc01 100644 --- a/setup.py +++ b/setup.py @@ -65,6 +65,7 @@ setup( 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Topic :: Internet :: Name Service (DNS)', ],