We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1eb617 commit 6909243Copy full SHA for 6909243
Adafruit_BBIO/Encoder.py
@@ -47,7 +47,7 @@ def fromdict(cls, d):
47
'''Creates a class instance from a dictionary'''
48
49
allowed = ('channel', 'pin_A', 'pin_B', 'sys_path')
50
- df = {k: v for k, v in d.iteritems() if k in allowed}
+ df = {k: v for k, v in d.items() if k in allowed}
51
return cls(**df)
52
53
def __init__(self, channel, pin_A, pin_B, sys_path):
0 commit comments