We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb8640 commit eafb2d3Copy full SHA for eafb2d3
src/diffpy/structure/parsers/p_cif.py
@@ -23,11 +23,6 @@
23
from contextlib import contextmanager
24
import numpy
25
import six
26
-try:
27
- import pathlib
28
- has_pathlib = True
29
-except ImportError:
30
- has_pathlib = False
31
32
from diffpy.structure import Structure, Lattice, Atom
33
from diffpy.structure import StructureFormatError
@@ -286,11 +281,7 @@ def parseFile(self, filename):
286
281
"""
287
282
self.ciffile = None
288
283
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)
294
285
# all good here
295
return rv
296
0 commit comments