Skip to content

Commit

Permalink
Cancel suport of Python 2.6
Browse files Browse the repository at this point in the history
- unittest module was much less evolved
- dict coprehensions were missing
  • Loading branch information
jacquev6 committed Oct 4, 2014
1 parent 4399ce9 commit 008cb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
@@ -1,6 +1,5 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
Expand Down
6 changes: 3 additions & 3 deletions LowVoltage/operations.py
Expand Up @@ -15,10 +15,10 @@ def go(self):
return self.__connection.request(self.__operation, self._build())

def _convert_dict(self, attributes):
return dict(
(key, self._convert_value(val))
return {
key: self._convert_value(val)
for key, val in attributes.iteritems()
)
}

def _convert_value(self, value):
if isinstance(value, basestring):
Expand Down

0 comments on commit 008cb6c

Please sign in to comment.