From: Diane Trout Date: Fri, 27 Mar 2015 17:58:35 +0000 (-0700) Subject: getitem should only return the key X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=966a93d2b3a060cd16b2940fc3f2cd8c456b4838 getitem should only return the key --- diff --git a/htsworkflow/submission/fastqname.py b/htsworkflow/submission/fastqname.py index 0ef67da..7f74f22 100644 --- a/htsworkflow/submission/fastqname.py +++ b/htsworkflow/submission/fastqname.py @@ -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: