Skip to content

Commit bc6962e

Browse files
committed
lint(geomap): minor tweak
1 parent 3ae53ad commit bc6962e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_delphi_utils_python/delphi_utils/geomap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,14 @@ def __init__(self, census_year=2020):
131131
self._crosswalks[from_code][to_code] = \
132132
self._load_crosswalk_from_file(from_code,
133133
to_code,
134-
join(f"data/{census_year}", file_path)
134+
join("data", f"{census_year}", file_path)
135135
)
136136

137137
for geo_type in self._geos:
138138
self._geo_sets[geo_type] = self._load_geo_values(geo_type)
139139

140140
def _load_crosswalk_from_file(self, from_code, to_code, data_path):
141-
stream = importlib_resources.files(__name__).joinpath(data_path)
141+
stream = importlib_resources.files(__name__) / data_path
142142
dtype = {
143143
from_code: str,
144144
to_code: str,

0 commit comments

Comments
 (0)