From 4647722e3f16f65cf6fd040cfcd69f09b4e40279 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 21 Jan 2017 20:51:35 -0500 Subject: [PATCH] remove OrderedDict for Python 2.6 --- pipenv/_pipfile/api.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pipenv/_pipfile/api.py b/pipenv/_pipfile/api.py index 3f6d1801..f0111f45 100644 --- a/pipenv/_pipfile/api.py +++ b/pipenv/_pipfile/api.py @@ -5,7 +5,6 @@ import hashlib import platform import sys import os -from collections import OrderedDict from . import _json @@ -55,10 +54,10 @@ class PipfileParser(object): def __init__(self, filename='Pipfile'): self.filename = filename self.sources = [] - self.groups = OrderedDict({ + self.groups = { 'default': [], 'develop': [] - }) + } self.group_stack = ['default'] self.requirements = [] @@ -85,12 +84,12 @@ class PipfileParser(object): config.update(toml.loads(content)) # Structure the data for output. - data = OrderedDict({ + data = { '_meta': { 'sources': config['source'], 'requires': config['requires'] }, - }) + } # TODO: Validate given data here. self.groups['default'] = config['packages']