Skip to content

Commit

Permalink
Import Abstract Base Classes from collections.abc in newer Python ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
WillSewell committed Feb 8, 2019
1 parent b802a38 commit b675e38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pusher/pusher_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
absolute_import,
division)

import collections
import sys
# Abstract Base Classes were moved into collections.abc in Python 3.3
if sys.version_info >= (3,3):
import collections.abc as collections
else:
import collections
import hashlib
import os
import re
Expand Down

0 comments on commit b675e38

Please sign in to comment.