Skip to content

Commit

Permalink
Remove python2 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wookayin committed Apr 9, 2023
1 parent 0ff8a31 commit b24cf0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpustat/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
IS_WINDOWS = 'windows' in platform.platform().lower()


class GPUStat(object):
class GPUStat:

def __init__(self, entry):
if not isinstance(entry, dict):
Expand Down Expand Up @@ -660,7 +660,7 @@ def print_formatted(self, fp=sys.stdout, *,
t_color = Terminal(kind=TERM, force_styling=True)

# workaround of issue #32 (watch doesn't recognize sgr0 characters)
t_color._normal = u'\x1b[0;10m'
t_color._normal = '\x1b[0;10m'
elif no_color:
t_color = Terminal(force_styling=None)
else:
Expand Down

0 comments on commit b24cf0d

Please sign in to comment.