Skip to content

Commit

Permalink
Remove some more redundant 2.x compatibility imports
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Mar 18, 2021
1 parent 045c7ad commit 6730b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions gpiozero/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
from itertools import repeat, cycle, chain, tee
from threading import Lock
from collections import OrderedDict, Counter, namedtuple
try:
from collections.abc import MutableMapping
except ImportError:
from collections import MutableMapping
from collections.abc import MutableMapping

from .exc import (
DeviceClosed,
Expand Down
5 changes: 1 addition & 4 deletions gpiozero/fonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@

import io
from collections import Counter
try:
from itertools import izip as zip, izip_longest as zip_longest
except ImportError:
from itertools import zip_longest
from itertools import zip_longest


def load_segment_font(filename_or_obj, width, height, pins):
Expand Down

0 comments on commit 6730b17

Please sign in to comment.