Skip to content

Commit

Permalink
CLN: replace %s syntax with .format in pandas.io (pandas-dev#24719)
Browse files Browse the repository at this point in the history
progress towards pandas-dev#16130
  • Loading branch information
makeajourney authored and Pingviinituutti committed Feb 28, 2019
1 parent cd44f94 commit e41b2f0
Show file tree
Hide file tree
Showing 5 changed files with 203 additions and 146 deletions.
3 changes: 2 additions & 1 deletion pandas/io/packers.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ def encode(obj):
elif isinstance(obj, date):
return {u'typ': u'date',
u'data': u(obj.isoformat())}
raise Exception("cannot encode this datetimelike object: %s" % obj)
raise Exception(
"cannot encode this datetimelike object: {obj}".format(obj=obj))
elif isinstance(obj, Period):
return {u'typ': u'period',
u'ordinal': obj.ordinal,
Expand Down
Loading

0 comments on commit e41b2f0

Please sign in to comment.