Skip to content

Commit 50eff60

Browse files
committed
Merge pull request #4241 from jreback/hdf_print
CLN: replace __repr__ with __unicode__ for string printing (to use StringMixIn)
2 parents 1204bbb + ec152a8 commit 50eff60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/pytables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ def __init__(self, values=None, kind=None, typ=None, cname=None, data=None, bloc
12931293
self.dtype_attr = u"%s_dtype" % self.name
12941294
self.set_data(data)
12951295

1296-
def __repr__(self):
1296+
def __unicode__(self):
12971297
return "name->%s,cname->%s,dtype->%s,shape->%s" % (self.name, self.cname, self.dtype, self.shape)
12981298

12991299
def __eq__(self, other):
@@ -2265,7 +2265,7 @@ def __init__(self, *args, **kwargs):
22652265
def table_type_short(self):
22662266
return self.table_type.split('_')[0]
22672267

2268-
def __repr__(self):
2268+
def __unicode__(self):
22692269
""" return a pretty representatgion of myself """
22702270
self.infer_axes()
22712271
dc = ",dc->[%s]" % ','.join(self.data_columns) if len(self.data_columns) else ''

0 commit comments

Comments
 (0)