Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update call to iteritems in luigi/tools/deps: deprecated in Python 3 #1749

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

sguermond
Copy link
Contributor

Description

dict.iteritems() is deprecated in Python 3 (PEP 3106), was replaced with dict.items()

Motivation and Context

Running luigi-deps to get a list of all upstream outputs returned the following error: AttributeError: 'dict' object has no attribute 'iteritems'

Have you tested this? If so, how?

The change worked for me (Python 3.5.0)

@codecov-io
Copy link

Current coverage is 76.13%

Merging #1749 into master will decrease coverage by 2.71%

@@             master      #1749   diff @@
==========================================
  Files            95         95          
  Lines         10348      10348          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits           8159       7878   -281   
- Misses         2189       2470   +281   
  Partials          0          0          

Powered by Codecov. Last updated by 11a431d...8ba13cb

@Tarrasch Tarrasch merged commit 87e8730 into spotify:master Jul 6, 2016
@Tarrasch
Copy link
Contributor

Tarrasch commented Jul 6, 2016

Thanks! For whatever reasons that tool is only tested with Python 2.

@sguermond sguermond deleted the luigi_deps_iteritems branch July 6, 2016 04:44
p7k pushed a commit to Celmatix/luigi that referenced this pull request Jul 11, 2016
* spotify/master: (25 commits)
  Version 2.2.0
  Add tests for hashing parameters (spotify#1719)
  Update call to iteritems in luigi/tools/deps: deprecated in Python 3 (spotify#1749)
  Reset terminal colors in external_program (spotify#1742)
  Caches get_autoconfig_client on a per-thread basis
  Fix bug with GCSFlagTarget
  Add additional event handlers to tasks (spotify#1698)
  Reduce number of get_params calls in common_params.
  Removes redundant function definitions from rpc and server (spotify#1734)
  Fix salesforce default content type (spotify#1724)
  Rename MockTarget class variable _fn to path
  Remove MockTarget path property
  Deprecated LocalTarget fn propery
  Add note about underscore in parameter names (spotify#1729)
  Remove tracking url callback hack (spotify#1722)
  Consistent Luigi spelling in docs (spotify#1723)
  Update example_top_artists.rst (spotify#1662)
  Add combiner to docstrings in mrrunner
  Add luigi-deps-tree visualising tool (spotify#1680)
  Adding release step for Debian packages. (spotify#1718)
  ...
This was referenced Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants