Skip to content

Commit

Permalink
deprecation remove
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhua0320 committed Aug 16, 2024
1 parent 578a972 commit d2495d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/diffpy/srmise/basefunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import sys

import numpy as np
from numpy.compat import unicode

from diffpy.srmise.srmiseerrors import SrMiseDataFormatError

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

0 comments on commit d2495d2

Please sign in to comment.