Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions pandas/core/computation/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ def _replacer(x) -> str:
"""
# get the hex repr of the binary char and remove 0x and pad by pad_size
# zeros
try:
hexin = ord(x)
except TypeError:
# bytes literals masquerade as ints when iterating in py3
if isinstance(x, int):
hexin = x
else:
hexin = ord(x)

return hex(hexin)

Expand Down Expand Up @@ -140,7 +139,7 @@ class Scope:
temps : dict
"""

__slots__ = ["level", "scope", "target", "resolvers", "temps"]
__slots__ = ["level", "resolvers", "scope", "target", "temps"]
level: int
scope: DeepChainMap
resolvers: DeepChainMap
Expand Down