Skip to content

Commit 1ba2ab3

Browse files
committed
clean up
1 parent a14a779 commit 1ba2ab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonpath_ng/ext/string.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class DefintionInvalid(Exception):
2424

2525

2626
class Sub(This):
27-
"""Regex subtituor
27+
"""Regex substituor
2828
2929
Concrete syntax is '`sub(/regex/, repl)`'
3030
"""
@@ -80,7 +80,7 @@ def find(self, datum):
8080
return [DatumInContext.wrap(value)]
8181

8282
def __eq__(self, other):
83-
return (isinstance(other, Sub) and self.method == other.method)
83+
return (isinstance(other, Split) and self.method == other.method)
8484

8585
def __repr__(self):
8686
return '%s(%r)' % (self.__class__.__name__, self.method)

0 commit comments

Comments
 (0)