Skip to content

Commit

Permalink
Merge pull request #126 from jackkolb/patch-1
Browse files Browse the repository at this point in the history
added collections.Iterable compatability with Python 3.10+
  • Loading branch information
kswain98 authored Oct 27, 2024
2 parents bb07172 + 9272ab3 commit 0e6347c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virtualhome/simulation/unity_simulator/comm_unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def __init__(self, url='127.0.0.1', port='8080', file_name=None, x_display=None,
time.sleep(2)
if not succeeded:
sys.exit()

# collections.Iterable was depreciated in Python 3.10, ensure compatability with current Python versions
if not hasattr(collections, 'Iterable'):
collections.Iterable = collections.abc.Iterable

def requests_retry_session(
self,
Expand Down

0 comments on commit 0e6347c

Please sign in to comment.