[Python-modules-commits] [gmplot] 01/04: Updated itermitems() to items()
Sandro Tosi
morph at moszumanska.debian.org
Mon Feb 1 22:37:12 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository gmplot.
commit 1b1248e91ce6aa71d14217c193b05bb1331a8d72
Author: Sandro Tosi <morph at debian.org>
Date: Mon Feb 1 22:32:44 2016 +0000
Updated itermitems() to items()
Iteritems() was breaking when using with Python 3+. items() in 3+ has the same
functionality as iteritems() in 2+
https://github.com/vgm64/gmplot/commit/50c0367cbf1e1ff3aedcf5f36a1cbcf237b820ed
---
gmplot/gmplot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gmplot/gmplot.py b/gmplot/gmplot.py
index a911c7d..ae601f9 100644
--- a/gmplot/gmplot.py
+++ b/gmplot/gmplot.py
@@ -102,7 +102,7 @@ class GoogleMapPlotter(object):
settings["face_color"]
# Need to replace "plum" with "#DDA0DD" and "c" with "#00FFFF" (cyan).
- for key, color in settings.iteritems():
+ for key, color in settings.items():
if 'color' in key:
color = self.color_dict.get(color, color)
color = self.html_color_codes.get(color, color)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/gmplot.git
More information about the Python-modules-commits
mailing list