getitem should only return the key
authorDiane Trout <diane@caltech.edu>
Fri, 27 Mar 2015 17:58:35 +0000 (10:58 -0700)
committerDiane Trout <diane@caltech.edu>
Fri, 27 Mar 2015 18:13:11 +0000 (11:13 -0700)
htsworkflow/submission/fastqname.py

index 0ef67da8f0f9c2a1833903bf44101493f0250ec1..7f74f2215c87b87de54ad4db2ad23b0b7cda34b6 100644 (file)
@@ -83,7 +83,7 @@ class FastqName(collections.Mapping):
         return iter(self._attributes)
 
     def __getitem__(self, key):
-        return getattr(self, key, None)
+        return getattr(self, key)
 
     def __setitem__(self, key, value):
         if key in self._attributes: