Re: [PATCH 5/7] py3k: the basestring and unicode types are removed in python 3
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Sun, 8 Jan 2012 22:04:44 +0000 (22:04 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:45 +0000 (09:41 -0800)
cd/4d0070972844bb03b8a4973eb85c00b1009dd5 [new file with mode: 0644]

diff --git a/cd/4d0070972844bb03b8a4973eb85c00b1009dd5 b/cd/4d0070972844bb03b8a4973eb85c00b1009dd5
new file mode 100644 (file)
index 0000000..f0b8fe8
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <teythoon@jade-hamburg.de>\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 92C7440F45E\r
+       for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 06:04:55 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "Date"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.433\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.433 tagged_above=-999 required=5\r
+       tests=[INVALID_DATE=0.432, UNPARSEABLE_RELAY=0.001] 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 Q669vVk8Tfcn for <notmuch@notmuchmail.org>;\r
+       Sun,  8 Jan 2012 06:04:55 -0800 (PST)\r
+Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E178640F45B\r
+       for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 06:04:54 -0800 (PST)\r
+Received: from mail.jade-hamburg.de (unknown [85.183.11.228])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by mail.cryptobitch.de (Postfix) with ESMTPSA id D7C5535A01E\r
+       for <notmuch@notmuchmail.org>; Sun,  8 Jan 2012 15:04:52 +0100 (CET)\r
+Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
+       id 3356CDF2A2; Sun,  8 Jan 2012 15:04:52 +0100 (CET)\r
+Received: from thinkbox.jade-hamburg.de (unknown\r
+       [IPv6:fe80::216:d3ff:fe3e:5058%br0])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested) (Authenticated sender: teythoon)\r
+       by mail.jade-hamburg.de (Postfix) with ESMTPSA id 78645DF2A0;\r
+       Sun,  8 Jan 2012 15:04:46 +0100 (CET)\r
+Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
+       (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
+       id 1RjtMa-0007sn-BK; Sun, 08 Jan 2012 15:04:44 +0100\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, Sebastian Spaeth <Sebastian@SSpaeth.de>,\r
+       notmuch@notmuchmail.org\r
+References:\r
+ <1323860305-15802-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
+       <1323860305-15802-6-git-send-email-4winter@informatik.uni-hamburg.de>\r
+       <87hb0ekudt.fsf@SSpaeth.de> <yf6sjjvxrxs.fsf@taco2.nixu.fi>\r
+In-Reply-To: <yf6sjjvxrxs.fsf@taco2.nixu.fi>\r
+Date: Sun, 08 Jan 2012 14:04:44 -0000\r
+Message-ID: <20120108140444.26863.68188@thinkbox.jade-hamburg.de>\r
+Subject: Re: [PATCH 5/7] py3k: the basestring and unicode types are removed in\r
+       python 3\r
+Date: Sun, 08 Jan 2012 15:04:44 +0100\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: Sun, 08 Jan 2012 14:04:55 -0000\r
+\r
+Hi Tomi, Hi Sebastian :)\r
+\r
+Quoting Tomi Ollila (2012-01-04 19:07:11)\r
+>On Mon, 02 Jan 2012 16:15:58 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de=\r
+> wrote:\r
+>> Happy new year. Pushed patches 1-4 of this series so far. Looking fine,\r
+\r
+nice, thanks.\r
+\r
+>> but ugh, the below seems like a rather ugly hack in a function that is\r
+>> probably called quite often.\r
+>>\r
+>> Isn't there a more pretty variant avoiding these sys.version_info checks\r
+>> all over the place?\r
+\r
+Well, I rebased and updated this patch. There are now two different\r
+implementations of _str like there are two Python3StringMixIn\r
+classes. I'll send this patch as reply to this message.\r
+\r
+>Does the Python3StringMixIn stuff in later patches already handle this\r
+>patch -- and making this obsolete ?\r
+\r
+No, that only handles the __str__ and __unicode__ stuff.\r
+\r
+Cheers,\r
+Justus\r