From: James Troup Date: Fri, 22 Nov 2002 14:55:51 +0000 (+0000) Subject: string.atol() is deprecated, use long() instead X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78efdca66122f0c48453419e109f0fbd6f095342;p=dak string.atol() is deprecated, use long() instead --- diff --git a/amber b/amber index 404b5285..db80a0d7 100755 --- a/amber +++ b/amber @@ -2,7 +2,7 @@ # Wrapper for Debian Security team # Copyright (C) 2002 James Troup -# $Id: amber,v 1.6 2002-10-16 02:47:32 troup Exp $ +# $Id: amber,v 1.7 2002-11-22 14:55:51 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -195,7 +195,7 @@ def make_advisory(advisory_nr, changes_files): "poolname": dscpoolname }; if os.environ.has_key("SUDO_UID"): - whoami = os.environ["SUDO_UID"].atol(); + whoami = long(os.environ["SUDO_UID"]); else: whoami = os.getuid(); whoamifull = pwd.getpwuid(whoami);