[PATCH 3/7] doc/prerst2man.py: Use Python-3-compatible octal notation
authorW. Trevor King <wking@tremily.us>
Sat, 5 Apr 2014 17:31:07 +0000 (10:31 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:01:15 +0000 (10:01 -0800)
b4/40c1b8304686260d7b41019949a7015d8f054c [new file with mode: 0644]

diff --git a/b4/40c1b8304686260d7b41019949a7015d8f054c b/b4/40c1b8304686260d7b41019949a7015d8f054c
new file mode 100644 (file)
index 0000000..7b83151
--- /dev/null
@@ -0,0 +1,103 @@
+Return-Path: <wking@tremily.us>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6A57F431FB6\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Apr 2014 10:41:29 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id faQh9QtpMgA3 for <notmuch@notmuchmail.org>;\r
+       Sat,  5 Apr 2014 10:41:23 -0700 (PDT)\r
+Received: from QMTA11.westchester.pa.mail.comcast.net\r
+       (qmta11.westchester.pa.mail.comcast.net [76.96.59.211])\r
+       by olra.theworths.org (Postfix) with ESMTP id DECD1431FAF\r
+       for <notmuch@notmuchmail.org>; Sat,  5 Apr 2014 10:41:22 -0700 (PDT)\r
+Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88])\r
+       by QMTA11.westchester.pa.mail.comcast.net with comcast\r
+       id mHb71n0051uE5Es5BHhNcN; Sat, 05 Apr 2014 17:41:22 +0000\r
+Received: from odin.tremily.us ([24.18.63.50])\r
+       by omta16.westchester.pa.mail.comcast.net with comcast\r
+       id mHhM1n00F152l3L3cHhNqU; Sat, 05 Apr 2014 17:41:22 +0000\r
+Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
+       by odin.tremily.us (Postfix) with ESMTPS id 3FCD11103C16;\r
+       Sat,  5 Apr 2014 10:31:25 -0700 (PDT)\r
+Received: (nullmailer pid 16917 invoked by uid 1000);\r
+       Sat, 05 Apr 2014 17:31:15 -0000\r
+From: "W. Trevor King" <wking@tremily.us>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/7] doc/prerst2man.py: Use Python-3-compatible octal notation\r
+Date: Sat,  5 Apr 2014 10:31:07 -0700\r
+Message-Id:\r
+ <5e4509ab08699afe2681110fb35075e1d0bbdc7e.1396718720.git.wking@tremily.us>\r
+X-Mailer: git-send-email 1.9.1.353.gc66d89d\r
+In-Reply-To: <cover.1396718720.git.wking@tremily.us>\r
+References: <cover.1396718720.git.wking@tremily.us>\r
+In-Reply-To: <cover.1396718720.git.wking@tremily.us>\r
+References: <cover.1396718720.git.wking@tremily.us>\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
+       s=q20140121; t=1396719682;\r
+       bh=JhZtuEvKNlZ1+bHeeQemDprrBPlvjJ/SfewoKJTC+bc=;\r
+       h=Received:Received:Received:Received:From:To:Subject:Date:\r
+       Message-Id;\r
+       b=nlpnBT1wVE/Au9zdHyYN5xQaKpFbB05JYvbyeQtJrJOudkeerLMpkI0gMa5CVxQdK\r
+       PMtUvdct1K5wv/abcTz95pJqVq2f2r1BL+/Up6/ketW5WnDG48D2bgv8FiupElGQt3\r
+       EhuTxpUi41YcMjX5z6387ATc0waTDfyBjkPMi66TRvagqKuJvbdxT7YabyBSPuZj2k\r
+       ruIrjeOOnszoHdKFnj8DKHBdrtN86O7rtZUnMmrqgfvL2HwhM8qiX9cZ73RuooVfnY\r
+       7H+O1iftJWCoD/2GLH6tZBmMw5UJS4wQKP7dw981AKC5Lmg0uRZniaHACBJanKs0tR\r
+       BEiXsCQwxIN4g==\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 05 Apr 2014 17:41:29 -0000\r
+\r
+Python 3 only supports the 0oXXX notation for octal literals [1,2],\r
+which have also been supported in 2.x since 2.6 [2].\r
+\r
+[1]: https://docs.python.org/3.0/whatsnew/3.0.html#integers\r
+[2]: http://legacy.python.org/dev/peps/pep-3127/\r
+---\r
+ doc/prerst2man.py | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/doc/prerst2man.py b/doc/prerst2man.py\r
+index 4591264..108f4a3 100644\r
+--- a/doc/prerst2man.py\r
++++ b/doc/prerst2man.py\r
+@@ -8,7 +8,7 @@ sourcedir = argv[1]\r
+ outdir = argv[2]\r
\r
+ if not isdir(outdir):\r
+-    makedirs(outdir, 0755)\r
++    makedirs(outdir, 0o755)\r
\r
+ execfile(sourcedir + "/conf.py")\r
\r
+@@ -34,7 +34,7 @@ blankre = re.compile("^\s*$")\r
+ for page in man_pages:\r
+     outdirname = outdir + '/' + dirname(page[0])\r
+     if not isdir(outdirname):\r
+-        makedirs(outdirname, 0755)\r
++        makedirs(outdirname, 0o755)\r
+     filename = outdir + '/' + page[0] + '.rst'\r
+     outfile = open(filename, 'w')\r
+     infile = open(sourcedir + '/' + page[0] + '.rst', 'r')\r
+-- \r
+1.9.1.353.gc66d89d\r
+\r