Skip to content

Commit eafb2d3

Browse files
committed
remove pathlib refs and call to _quoteLocalPath
1 parent bcb8640 commit eafb2d3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/diffpy/structure/parsers/p_cif.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
from contextlib import contextmanager
2424
import numpy
2525
import six
26-
try:
27-
import pathlib
28-
has_pathlib = True
29-
except ImportError:
30-
has_pathlib = False
3126

3227
from diffpy.structure import Structure, Lattice, Atom
3328
from diffpy.structure import StructureFormatError
@@ -286,11 +281,7 @@ def parseFile(self, filename):
286281
"""
287282
self.ciffile = None
288283
self.filename = filename
289-
if has_pathlib:
290-
rv = self._parseCifDataSource(filename)
291-
else:
292-
fileurl = _quoteLocalPath(filename)
293-
rv = self._parseCifDataSource(fileurl)
284+
rv = self._parseCifDataSource(filename)
294285
# all good here
295286
return rv
296287

0 commit comments

Comments
 (0)