summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-10-18 11:51:44 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-10-18 11:51:44 +0200
commit3bf6b76611bf0b148d495e2e4aae08546e54fa94 (patch)
tree52a21ae6f4742644a5709b3a160c862d818e821f /apt
parentd9deeabe21f828ae4301c4aab5073f775f954e25 (diff)
downloadpython-apt-3bf6b76611bf0b148d495e2e4aae08546e54fa94.tar.gz
fix compat issues with python3
Diffstat (limited to 'apt')
-rw-r--r--apt/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/utils.py b/apt/utils.py
index 8fc69215..49e8bed5 100644
--- a/apt/utils.py
+++ b/apt/utils.py
@@ -29,10 +29,10 @@ def get_maintenance_end_date(release_date, m_months):
its is supported as input
"""
# calc end date
- years = m_months / 12
+ years = m_months // 12
months = m_months % 12
support_end_year = (release_date.year + years +
- (release_date.month + months)/12)
+ (release_date.month + months)//12)
support_end_month = (release_date.month + months) % 12
# special case: this happens when e.g. doing 2010-06 + 18 months
if support_end_month == 0: