unset = object()


def of(d):
    return {k: v for k, v in d.iteritems() if v != unset}


from six import iteritems
unset = object()


def of(d):
    return {k: v for k, v in iteritems(d) if v != unset}


Replace iteritems with six helper
Replace iteritems with six helper

+ from six import iteritems
  unset = object()
  
  
  def of(d):
-     return {k: v for k, v in d.iteritems() if v != unset}
+     return {k: v for k, v in iteritems(d) if v != unset}
  
  
Replace iteritems with six helper
## Code Before:
unset = object()


def of(d):
    return {k: v for k, v in d.iteritems() if v != unset}


## Instruction:
Replace iteritems with six helper
## Code After:
from six import iteritems
unset = object()


def of(d):
    return {k: v for k, v in iteritems(d) if v != unset}

