summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McFarlane <john@rockfloat.com>2013-04-25 11:33:33 -0700
committerJohn McFarlane <john@rockfloat.com>2013-04-25 11:33:33 -0700
commitbd3e1276f65fec13b0aeaf696336c55d62dfb737 (patch)
treeb85406abd0f60342652982ba9dce5d84402817c3
parent0de02c9036644b0673c0b649f3f15ff8c6d4338f (diff)
downloadwheel-skip-fields-py26.tar.gz
Use python2.6 compatible syntax for a setskip-fields-py26
Previously consumption of metadata.py broke under python2.6: $ python2.6 Python 2.6.8 (default, Sep 21 2012, 13:59:38) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> SKIP_FIELDS = { "description" } File "<stdin>", line 1 SKIP_FIELDS = { "description" } ^ SyntaxError: invalid syntax >>> $ python2.7 Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> { "description" } == set(["description"]) True >>>
-rw-r--r--wheel/metadata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wheel/metadata.py b/wheel/metadata.py
index 44ed104..3c68044 100644
--- a/wheel/metadata.py
+++ b/wheel/metadata.py
@@ -7,7 +7,7 @@ METADATA_VERSION = "2.0"
PLURAL_FIELDS = { "classifier" : "classifiers",
"provides_dist" : "provides",
"provides_extra" : "extras" }
-SKIP_FIELDS = { "description" }
+SKIP_FIELDS = set(["description"])
def unique(iterable):
seen = set()