Skip to content

Commit

Permalink
rename __repr__ => __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 9, 2021
1 parent b2245bf commit ea06383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tqdm/std.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ def __exit__(self, exc_type, exc_value, traceback):
def __del__(self):
self.close()

def __repr__(self):
def __str__(self):
return self.format_meter(**self.format_dict)

@property
Expand Down Expand Up @@ -1466,7 +1466,7 @@ def display(self, msg=None, pos=None):

if pos:
self.moveto(pos)
self.sp(self.__repr__() if msg is None else msg)
self.sp(self.__str__() if msg is None else msg)
if pos:
self.moveto(-pos)
return True
Expand Down

0 comments on commit ea06383

Please sign in to comment.