Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)
return a copy of the dictionary without none values.

        def non_none_dict(d):
  """return a copy of the dictionary without none values."""
  return dict([a for a in d.items() if not a[1] is None])
        


src/m/e/me2-0.1a1/me2/upload/waveapi/element.py   me2(Download)
  def serialize(self):
    """Custom serializer for Elements."""
    return util.serialize({'properties': util.non_none_dict(self._properties),
                           'type': self._type})
 

src/j/s/jsonbot-HEAD/jsb/upload/waveapi/element.py   jsonbot(Download)
  def serialize(self):
    """Custom serializer for Elements."""
    return util.serialize({'properties': util.non_none_dict(self._properties),
                           'type': self._type})
 

src/p/y/PyTide-HEAD/NetworkTools/waveapi/element.py   PyTide(Download)
  def serialize(self):
    """Custom serializer for Elements."""
    return util.serialize({'properties': util.non_none_dict(self._properties),
                           'type': self._type})
 

src/m/r/mr-ray-open-HEAD/waveapi/element.py   mr-ray-open(Download)
  def serialize(self):
    """Custom serializer for Elements."""
    return util.serialize({'properties': util.non_none_dict(self._properties),
                           'type': self._type})
 

src/r/s/rss-feeder-bot-HEAD/waveapi/element.py   rss-feeder-bot(Download)
  def serialize(self):
    """Custom serializer for Elements."""
    return util.serialize({'properties': util.non_none_dict(self._properties),
                           'type': self._type})
 

src/m/e/me2-0.1a1/me2/upload/waveapi/util_test.py   me2(Download)
  def testNonNoneDict(self):
    a = {'a': 1, 'b': 1}
    self.assertDictsEqual(a, util.non_none_dict(a))
    b = a.copy()
    b['c'] = None
    self.assertDictsEqual(a, util.non_none_dict(b))

src/j/s/jsonbot-HEAD/jsb/upload/waveapi/util_test.py   jsonbot(Download)
  def testNonNoneDict(self):
    a = {'a': 1, 'b': 1}
    self.assertDictsEqual(a, util.non_none_dict(a))
    b = a.copy()
    b['c'] = None
    self.assertDictsEqual(a, util.non_none_dict(b))

src/p/y/PyTide-HEAD/NetworkTools/waveapi/util_test.py   PyTide(Download)
  def testNonNoneDict(self):
    a = {'a': 1, 'b': 1}
    self.assertDictsEqual(a, util.non_none_dict(a))
    b = a.copy()
    b['c'] = None
    self.assertDictsEqual(a, util.non_none_dict(b))

src/m/r/mr-ray-open-HEAD/waveapi/util_test.py   mr-ray-open(Download)
  def testNonNoneDict(self):
    a = {'a': 1, 'b': 1}
    self.assertDictsEqual(a, util.non_none_dict(a))
    b = a.copy()
    b['c'] = None
    self.assertDictsEqual(a, util.non_none_dict(b))

src/r/s/rss-feeder-bot-HEAD/waveapi/util_test.py   rss-feeder-bot(Download)
  def testNonNoneDict(self):
    a = {'a': 1, 'b': 1}
    self.assertDictsEqual(a, util.non_none_dict(a))
    b = a.copy()
    b['c'] = None
    self.assertDictsEqual(a, util.non_none_dict(b))