Skip to content

Commit 4550580

Browse files
committed
further blackening
1 parent 3ff503c commit 4550580

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

libpysal/weights/weights.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _reset(self):
175175
"""Reset properties."""
176176
self._cache = {}
177177

178-
def to_file(self, path='', format=None):
178+
def to_file(self, path="", format=None):
179179
"""
180180
Write a weights to a file. The format is guessed automatically
181181
from the path, but can be overridden with the format argument.
@@ -194,13 +194,12 @@ def to_file(self, path='', format=None):
194194
-------
195195
None
196196
"""
197-
f = popen(dataPath=path, mode='w', dataFormat=format)
197+
f = popen(dataPath=path, mode="w", dataFormat=format)
198198
f.write(self)
199199
f.close()
200-
201200

202201
@classmethod
203-
def from_file(cls, path='', format=None):
202+
def from_file(cls, path="", format=None):
204203
"""
205204
Read a weights file into a W object.
206205
@@ -215,7 +214,7 @@ def from_file(cls, path='', format=None):
215214
-------
216215
W object
217216
"""
218-
f = popen(dataPath=path, mode='r', dataFormat=format)
217+
f = popen(dataPath=path, mode="r", dataFormat=format)
219218
w = f.read()
220219
f.close()
221220
return w

0 commit comments

Comments
 (0)