Skip to content

Commit 2ec4332

Browse files
committed
Reworked a bunch
1 parent 9b3d93a commit 2ec4332

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

censusbatchgeocoder/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ def geocode(self, string_or_stream):
142142
# This is for strings that should be a path leading to a file
143143
if self.encoding:
144144
request_file = open(string_or_stream, encoding=self.encoding)
145+
else:
146+
request_file = open(string_or_stream)
145147
request_csv = list(agate.csv.DictReader(request_file, **self.agate_options))
146148
else:
147149
# Otherwise we assume it's a list of dictionaries ready to go

0 commit comments

Comments
 (0)