Skip to content

Commit 43cbfd5

Browse files
makeajourneyPingviinituutti
authored andcommitted
CLN: replace %s syntax with .format in pandas.io (pandas-dev#24719)
progress towards pandas-dev#16130
1 parent 493007d commit 43cbfd5

File tree

5 files changed

+203
-146
lines changed

5 files changed

+203
-146
lines changed

pandas/io/packers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ def encode(obj):
519519
elif isinstance(obj, date):
520520
return {u'typ': u'date',
521521
u'data': u(obj.isoformat())}
522-
raise Exception("cannot encode this datetimelike object: %s" % obj)
522+
raise Exception(
523+
"cannot encode this datetimelike object: {obj}".format(obj=obj))
523524
elif isinstance(obj, Period):
524525
return {u'typ': u'period',
525526
u'ordinal': obj.ordinal,

0 commit comments

Comments
 (0)