From 21c72fe229ce051928b0dfb98dcb635d4f79f2ad Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 19 Jun 2011 12:53:03 -0400 Subject: [PATCH] pylint --- fabfile.py | 1 + httpbin/structures.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fabfile.py b/fabfile.py index 990f2e8..5abbbe9 100644 --- a/fabfile.py +++ b/fabfile.py @@ -5,6 +5,7 @@ import os from fabric.api import * + CMD_TEMPLATE = '{0}' EPIO_TEMPLATE = 'epio {0}' diff --git a/httpbin/structures.py b/httpbin/structures.py index 996b159..ccad99c 100644 --- a/httpbin/structures.py +++ b/httpbin/structures.py @@ -18,12 +18,10 @@ class CaseInsensitiveDict(dict): def _lower_keys(self): return map(str.lower, self.keys()) - def __contains__(self, key): return key.lower() in self._lower_keys() - def __getitem__(self, key): # We allow fall-through here, so values default to None if key in self: - return self.items()[self._lower_keys().index(key.lower())][1] \ No newline at end of file + return self.items()[self._lower_keys().index(key.lower())][1]