1 Return-Path: <teythoon@jade-hamburg.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id E8B51429E27
\r
6 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 04:52:06 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id tizyarDxZEHz for <notmuch@notmuchmail.org>;
\r
16 Wed, 14 Dec 2011 04:52:06 -0800 (PST)
\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 4CA40429E26
\r
21 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 04:52:06 -0800 (PST)
\r
22 Received: from mail.jade-hamburg.de (unknown [85.183.11.228])
\r
23 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
24 (No client certificate requested)
\r
25 by mail.cryptobitch.de (Postfix) with ESMTPSA id D563E50F4A1
\r
26 for <notmuch@notmuchmail.org>; Wed, 14 Dec 2011 13:52:04 +0100 (CET)
\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)
\r
28 id 027F9DF2A1; Wed, 14 Dec 2011 13:52:03 +0100 (CET)
\r
29 Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228])
\r
30 (using TLSv1 with cipher AES256-SHA (256/256 bits))
\r
31 (No client certificate requested) (Authenticated sender: teythoon)
\r
32 by mail.jade-hamburg.de (Postfix) with ESMTPSA id 476F7DF29F;
\r
33 Wed, 14 Dec 2011 13:52:02 +0100 (CET)
\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)
\r
35 (envelope-from <teythoon@thinkbox.jade-hamburg.de>)
\r
36 id 1RaoJV-0007br-5g; Wed, 14 Dec 2011 13:52:01 +0100
\r
37 Content-Type: multipart/mixed; boundary="===============6331577158138597432=="
\r
40 <1323860305-15802-1-git-send-email-4winter@informatik.uni-hamburg.de>
\r
41 <1323860305-15802-4-git-send-email-4winter@informatik.uni-hamburg.de>
\r
42 <yf6r507s5y2.fsf@taco2.nixu.fi>
\r
43 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
\r
44 In-Reply-To: <yf6r507s5y2.fsf@taco2.nixu.fi>
\r
45 From: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
46 Subject: Re: [PATCH 3/7] py3k: All strings are unicode strings in py3k
\r
47 Date: Wed, 14 Dec 2011 13:52:01 +0100
\r
48 Message-Id: <E1RaoJV-0007br-5g@thinkbox.jade-hamburg.de>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Wed, 14 Dec 2011 12:52:07 -0000
\r
63 --===============6331577158138597432==
\r
64 Content-Type: text/plain; charset="utf-8"
\r
66 Content-Transfer-Encoding: quoted-printable
\r
70 Quoting Tomi Ollila (2011-12-14 13:17:41)
\r
71 >On Wed, 14 Dec 2011 11:58:21 +0100, Justus Winter <4winter@informatik.uni-=
\r
74 >> bindings/python/notmuch/globals.py | 4 ++--
\r
75 >> 1 files changed, 2 insertions(+), 2 deletions(-)
\r
78 >> diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuc=
\r
80 >> index 54a49b2..99e6a10 100644
\r
81 >> --- a/bindings/python/notmuch/globals.py
\r
82 >> +++ b/bindings/python/notmuch/globals.py
\r
83 >> @@ -51,7 +51,7 @@ class Status(Enum):
\r
84 >> """Get a (unicode) string representation of a notmuch_status_t =
\r
86 >> # define strings for custom error messages
\r
87 >> if status =3D=3D STATUS.NOT_INITIALIZED:
\r
88 >> - return u"Operation on uninitialized object impossible."
\r
89 >> + return "Operation on uninitialized object impossible."
\r
90 >> return unicode(Status._status2str(status))
\r
93 >> STATUS =3D Status(['SUCCESS',
\r
94 >> @@ -142,7 +142,7 @@ class NotmuchError(Exception):
\r
95 >> elif self.status is not None:
\r
96 >> return STATUS.status2str(self.status)
\r
98 >> - return u'Unknown error'
\r
99 >> + return 'Unknown error'
\r
101 >Is this u -prefix unnecessary in python 2 too ? Grepping
\r
102 >'u"' and "u'" in **/*.py in puthon bindings source resulted
\r
103 >some more u-prefixed strings in docs/source/conf.py. Should
\r
104 >these be changed in some future patch ?
\r
106 Well, since the string literal contains no non-ascii characters it is
\r
107 perfectly safe to just use a (python2.x) string literal and it will be
\r
108 automatically coerced to unicode if it is used in a unicode context.
\r
110 OTOH it is possible to use
\r
112 from __future__ import unicode_literals
\r
114 to turn all string literals to unicode literals in python 2.x.
\r
118 --===============6331577158138597432==
\r
119 Content-Type: application/octet-stream
\r
121 Content-Transfer-Encoding: base64
\r
122 Content-Disposition: attachment; filename=".signature"
\r
124 bG92ZSB1IGFsb3QgQCxACgo=
\r
126 --===============6331577158138597432==--
\r