Commit 6b3a516f authored by Jason Fried's avatar Jason Fried Committed by Facebook Github Bot
Browse files

collections.abc python 3.8

Summary:
In python 3.7 collections.abc warns when importing abc classes from `collections`
In 3.8 this will not work at all.

This changes all code using abc's from collections to attempt to import from `collections.abc`

I am not fixing existing lint's don't ask, if `arc lint` auto-fixed I accepted, except for spelling in code.

Reviewed By: lisroach

Differential Revision: D15461049

fbshipit-source-id: ac2bf2ec8cffacd8ba5572882b0832bbf99a1646
parent 128f4bea
...@@ -8,7 +8,10 @@ ...@@ -8,7 +8,10 @@
import contextlib import contextlib
import os import os
import numpy as np import numpy as np
from collections import Iterable try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
def infer_language_pair(path): def infer_language_pair(path):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment