From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RggBA-0003QY-T7 for garchives@archives.gentoo.org; Fri, 30 Dec 2011 17:23:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C2F621C03D; Fri, 30 Dec 2011 17:23:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DF4AF21C03D for ; Fri, 30 Dec 2011 17:23:32 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 63D1B1B4017 for ; Fri, 30 Dec 2011 17:23:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7F6F980043 for ; Fri, 30 Dec 2011 17:23:31 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/webapp-config:master commit in: WebappConfig/ X-VCS-Repository: proj/webapp-config X-VCS-Files: WebappConfig/content.py WebappConfig/db.py WebappConfig/dotconfig.py WebappConfig/worker.py X-VCS-Directories: WebappConfig/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: f345724471322f989701e25bb0462a8b5f458dd2 Date: Fri, 30 Dec 2011 17:23:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f78d1f98-00ac-4a79-acbc-f1a889a25a0a X-Archives-Hash: 08a79640d70d931c13d66f5709a8dbc7 commit: f345724471322f989701e25bb0462a8b5f458dd2 Author: Arfrever gentoo org> AuthorDate: Fri Dec 30 17:23:04 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Fri Dec 30 17:23:16 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/webapp-config= .git;a=3Dcommit;h=3Df3457244 Update syntax of octal numbers for compatibility with Python 3. Reported-By: Arfrever gentoo.org> Signed-off-by: Anthony G. Basile gentoo.org> --- WebappConfig/content.py | 2 +- WebappConfig/db.py | 4 ++-- WebappConfig/dotconfig.py | 2 +- WebappConfig/worker.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebappConfig/content.py b/WebappConfig/content.py index c535e52..d6cf3f6 100644 --- a/WebappConfig/content.py +++ b/WebappConfig/content.py @@ -298,7 +298,7 @@ class Contents: if not self.__p: try: fd =3D os.open(self.appdb(), os.O_WRONLY | os.O_CREAT, - self.__perm(0600)) + self.__perm(0o600)) =20 os.write(fd, '\n'.join(values)) =20 diff --git a/WebappConfig/db.py b/WebappConfig/db.py index 856761e..aa78c24 100644 --- a/WebappConfig/db.py +++ b/WebappConfig/db.py @@ -370,14 +370,14 @@ class WebappDB(AppHierarchy): OUT.die('No package specified!') =20 if not self.__p and not os.path.isdir(os.path.dirname(dbpath)): - os.makedirs(os.path.dirname(dbpath), self.__dir_perm(0755)) + os.makedirs(os.path.dirname(dbpath), self.__dir_perm(0o755)) =20 fd =3D None =20 if not self.__p: fd =3D os.open(dbpath, os.O_WRONLY | os.O_APPEND | os.O_CREAT, - self.__file_perm(0600)) + self.__file_perm(0o600)) =20 entry =3D str(int(time.time())) + ' ' + str(user) + ' ' + str(gr= oup)\ + ' ' + installdir + '\n' diff --git a/WebappConfig/dotconfig.py b/WebappConfig/dotconfig.py index be01126..c9a5ba1 100644 --- a/WebappConfig/dotconfig.py +++ b/WebappConfig/dotconfig.py @@ -255,7 +255,7 @@ class DotConfig: =20 fd =3D os.open(self.__dot_config(), os.O_WRONLY | os.O_CREAT, - self.__perm(0600)) + self.__perm(0o600)) =20 os.write(fd, '\n'.join(info)) os.close(fd) diff --git a/WebappConfig/worker.py b/WebappConfig/worker.py index d1ece72..d57a55c 100644 --- a/WebappConfig/worker.py +++ b/WebappConfig/worker.py @@ -375,7 +375,7 @@ class WebappAdd: OUT.debug('Creating directory', 8) =20 if not self.__p: - os.makedirs(dst_dir, perm(0755)) + os.makedirs(dst_dir, perm(0o755)) =20 os.chown(dst_dir, user,