jkbr/httpie — pull request #2 by flashingpumpkin (2012-02-28 10:59:31+00:00)
Title: Syntax error fixes for Python 2.6

Hey

Just tried installing with Python 2.6.1 and ran into syntax errors:

```
$ pip install httpie
Downloading/unpacking httpie
Downloading httpie-0.1.3.tar.gz
Running setup.py egg_info for package httpie
Traceback (most recent call last):
File "", line 14, in
File "/Users/alen/build/httpie/setup.py", line 2, in
from httpie import httpie
File "httpie/httpie.py", line 39
for sep in self.separators
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 14, in

File "/Users/alen/build/httpie/setup.py", line 2, in

from httpie import httpie

File "httpie/httpie.py", line 39

for sep in self.separators

^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /Users/alen/.pip/pip.log
```

I converted the dict comprehensions to list comprehensions wrapped in a `dict()` call.