Skip to content

Commit ac60a86

Browse files
authored
Fix tests
1 parent b98899a commit ac60a86

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdnum/numdb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,16 @@
6262
import re
6363

6464
try:
65+
6566
from importlib.resources import files
6667

6768
def get_resource_stream(name):
68-
return files(__name__).joinpath(name).open('rb')
69+
""" Return resource stream for given name """"
70+
return files('stdnum').joinpath(name).open('rb')
6971

7072
except ImportError:
7173
from functools import partial
74+
7275
from pkg_resources import resource_stream
7376

7477
get_resource_stream = partial(resource_stream, __name__)

0 commit comments

Comments
 (0)