def split_pulls(all_issues, project='ipython/ipython'):
 pulls = []
 issues = []
 for i in all_issues:
  if is_pull_request(i):
   pull = get_pull_request(project, i['number'], auth=True)
   pulls.append(pull)
  else:
   issues.append(i)
 return (issues, pulls)

def split_pulls ( all_issues , project = 'ipython/ipython' ) : pulls = [ ] issues = [ ] for i in all_issues : if is_pull_request ( i ) : pull = get_pull_request ( project , i [ 'number' ] , auth = True ) pulls . append ( pull ) else : issues . append ( i ) return ( issues , pulls )
split a list of closed issues into non-pr issues and pull requests .