Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Fix integer division on Python 3. #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion SpiffyTitles/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#
###

from __future__ import division

from supybot.commands import *
import supybot.ircmsgs as ircmsgs
import supybot.ircutils as ircutils
Expand Down Expand Up @@ -1041,7 +1043,7 @@ def handler_reddit(self, url, domain, channel):
else:
age = '{}d'.format(age_days % 365)
if age_days > 365:
age = '{}y, '.format(age_days / 365) + age
age = '{}y, '.format(age_days // 365) + age
age = age + " ago"
if link_type == "thread":
link_type = "linkThread"
Expand Down