From e9ae9fc6c16587c8fec5f7553b11761fbb08293deb900fcf5d306b7bc3b45b96 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 Jul 2021 10:29:19 +0000 Subject: [PATCH] Accepting request 904696 from home:StevenK:branches:server:mail - Update eximstats-html-update.py to run under Python 3. OBS-URL: https://build.opensuse.org/request/show/904696 OBS-URL: https://build.opensuse.org/package/show/server:mail/exim?expand=0&rev=254 --- exim.changes | 5 +++++ exim.spec | 8 +++++--- eximstats-html-update.py | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/exim.changes b/exim.changes index 4b707c3..2d17890 100644 --- a/exim.changes +++ b/exim.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 8 06:08:34 UTC 2021 - Steve Kowalik + +- Update eximstats-html-update.py to run under Python 3. + ------------------------------------------------------------------- Mon May 17 15:03:24 CEST 2021 - wullinger@rz.uni-kiel.de diff --git a/exim.spec b/exim.spec index 99b0742..726ea26 100644 --- a/exim.spec +++ b/exim.spec @@ -1,7 +1,7 @@ # # spec file for package exim # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -53,7 +53,9 @@ BuildRequires: pkgconfig(xaw7) BuildRequires: pkgconfig(xmu) BuildRequires: pkgconfig(xt) URL: http://www.exim.org/ -Conflicts: sendmail sendmail-tls postfix +Conflicts: postfix +Conflicts: sendmail +Conflicts: sendmail-tls Provides: smtp_daemon %if %{?suse_version:%suse_version}%{?!suse_version:0} > 800 Requires: logrotate @@ -73,7 +75,7 @@ Requires(pre): group(mail) Requires(pre): fileutils textutils %endif Version: 4.94.2 -Release: 2 +Release: 0 %if %{with_mysql} BuildRequires: mysql-devel %endif diff --git a/eximstats-html-update.py b/eximstats-html-update.py index b99dc2d..3b2c127 100644 --- a/eximstats-html-update.py +++ b/eximstats-html-update.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os, os.path, glob @@ -16,7 +16,7 @@ def main(): if os.path.exists(outdir): continue - print 'processing', daystr + print('processing', daystr) os.mkdir(outdir) if ext == '.gz':