Skip to content

Commit 6909243

Browse files
authored
Encoder: use items() instead of iteritems() to be Python 3 compatible
1 parent d1eb617 commit 6909243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Adafruit_BBIO/Encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def fromdict(cls, d):
4747
'''Creates a class instance from a dictionary'''
4848

4949
allowed = ('channel', 'pin_A', 'pin_B', 'sys_path')
50-
df = {k: v for k, v in d.iteritems() if k in allowed}
50+
df = {k: v for k, v in d.items() if k in allowed}
5151
return cls(**df)
5252

5353
def __init__(self, channel, pin_A, pin_B, sys_path):

0 commit comments

Comments
 (0)