Skip to content

Commit abfdb5b

Browse files
deprecation remove (#78)
* deprecation remove * fix to right behavior
1 parent 3773bcf commit abfdb5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/diffpy/srmise/basefunction.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import sys
1919

2020
import numpy as np
21-
from numpy.compat import unicode
2221

2322
from diffpy.srmise.srmiseerrors import SrMiseDataFormatError
2423

@@ -100,7 +99,7 @@ def __init__(
10099
# arbitrary types, parameters are indexed by these keys as well as
101100
# integer indices. Restricting keys to strings keeps things sane.
102101
for p in self.parameterdict.keys():
103-
if type(p) not in (str, unicode):
102+
if not isinstance(p, str):
104103
emsg = "Argument parameterdict's keys must be strings."
105104
raise ValueError(emsg)
106105
vals = self.parameterdict.values()

0 commit comments

Comments
 (0)