diff options
| author | John McFarlane <john@rockfloat.com> | 2013-04-25 11:33:33 -0700 |
|---|---|---|
| committer | John McFarlane <john@rockfloat.com> | 2013-04-25 11:33:33 -0700 |
| commit | bd3e1276f65fec13b0aeaf696336c55d62dfb737 (patch) | |
| tree | b85406abd0f60342652982ba9dce5d84402817c3 | |
| parent | 0de02c9036644b0673c0b649f3f15ff8c6d4338f (diff) | |
| download | wheel-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.py | 2 |
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() |
