Skip to content

Commit 2f54b4e

Browse files
committed
use dict.items() instead of dict.iteritems() for Python 3
from: https://wiki.python.org/moin/Python3.0 > Remove dict.iteritems(), dict.iterkeys(), and dict.itervalues(). > Instead: use dict.items(), dict.keys(), and dict.values() respectively. Signed-off-by: Drew Fustini <drew@pdp7.com>
1 parent cd6b0a7 commit 2f54b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_led.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def set_all_leds(self, state):
3434
"USR1": "mmc0", \
3535
"USR2": "cpu0", \
3636
"USR3": "mmc1" }
37-
for led, name in test_leds.iteritems():
37+
for led, name in test_leds.items():
3838
self.set_brightness(state, led, name)
3939
GPIO.cleanup()
4040

0 commit comments

Comments
 (0)