Skip to content

Commit

Permalink
[pyobj-] use cls.options instead of non-existent global options #2312
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Feb 18, 2024
1 parent b0cec6b commit 117e11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/pyobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __new__(cls, *names, **kwargs):
elif isinstance(pyobj, str):
return TextSheet(*names, source=pyobj.splitlines())
elif isinstance(pyobj, bytes):
return TextSheet(*names, source=pyobj.decode(options.encoding).splitlines())
return TextSheet(*names, source=pyobj.decode(cls.options.encoding).splitlines())
elif isinstance(pyobj, object):
obj = super().__new__(cls) #, *names, **kwargs)
return obj
Expand Down

0 comments on commit 117e11a

Please sign in to comment.