Commits

Andriy Kornatskyy committed 2af6db3

Fixed compatibility issue with python3.3

Comments (0)

Files changed (2)

 		echo 'done.'; \
 	fi
 	$(EASY_INSTALL) -i $(PYPI) -O2 coverage nose pytest \
-		pytest-pep8 pytest-cov mock wsgiref lxml
-	# The following packages available for python < 3.0
-	#if [ "$$(echo $(VERSION) | sed 's/\.//')" -lt 30 ]; then \
-	#	$(EASY_INSTALL) sphinx; \
-	#fi
+		pytest-pep8 pytest-cov mock lxml
+	# The following packages available for python == 2.4
+	if [ "$$(echo $(VERSION) | sed 's/\.//')" -eq 24 ]; then \
+		$(EASY_INSTALL) -i $(PYPI) -O2 wsgiref; \
+	fi
+	# The following packages available for python < 3.3
+	if [ "$$(echo $(VERSION) | sed 's/\.//')" -lt 33 ]; then \
+		$(EASY_INSTALL) -i $(PYPI) -O2 lxml; \
+	fi
 	$(PYTHON) setup.py develop -i $(PYPI)
 
 clean:

src/wheezy/http/parse.py

 
         >>> parse_cookie('')
         {}
-        >>> parse_cookie('ID=1234; PREF=abc')
-        {'PREF': 'abc', 'ID': '1234'}
+        >>> sorted(parse_cookie('ID=1234; PREF=abc').items())
+        [('ID', '1234'), ('PREF', 'abc')]
     """
     return cookie and dict([pair.split('=', 1)
                             for pair in cookie.split('; ')]) or {}