parameters: (n)
return_statement: return keep
docstring: Creates a filter that keeps every export that is a multiple of n.
  
    Args:
      n: step size.
  
    Returns:
      A filter function that keeps paths where export_version % n == 0.
docstring_summary: Creates a filter that keeps every export that is a multiple of n.
docstring_tokens: Creates a filter that keeps every export that is a multiple of n .
function: def mod_export_version(n):
    """Creates a filter that keeps every export that is a multiple of n.
  
    Args:
      n: step size.
  
    Returns:
      A filter function that keeps paths where export_version % n == 0.
    """
    def keep(paths):
      keepers = []
      for p in paths:
        if p.export_version % n == 0:
          keepers.append(p)
      return sorted(keepers)
    return keep
function_tokens: def mod_export_version ( n ) : def keep ( paths ) : keepers = [ ] for p in paths : if p . export_version % n == 0 : keepers . append ( p ) return sorted ( keepers ) return keep