* [PATCH 1/2] python: Import explicit including package name
@ 2010-10-28 12:37 Sebastian Spaeth
2010-10-28 12:37 ` [PATCH 2/2] python: lambda(p) is not P3k-compliant Sebastian Spaeth
2010-10-28 19:13 ` [PATCH 1/2] python: Import explicit including package name Carl Worth
0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Spaeth @ 2010-10-28 12:37 UTC (permalink / raw)
To: notmuch
To make python3 happy
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
---
Please find these two patches making the notmuch module (more) python 3k compliant.
I could not push them directly for some reason.
bindings/python/notmuch/__init__.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bindings/python/notmuch/__init__.py b/bindings/python/notmuch/__init__.py
index 56a4f2a..5ba1337 100644
--- a/bindings/python/notmuch/__init__.py
+++ b/bindings/python/notmuch/__init__.py
@@ -51,10 +51,10 @@ along with notmuch. If not, see <http://www.gnu.org/licenses/>.
Copyright 2010 Sebastian Spaeth <Sebastian@SSpaeth.de>'
"""
-from database import Database, Query
-from message import Messages, Message
-from thread import Threads, Thread
-from tag import Tags
+from notmuch.database import Database, Query
+from notmuch.message import Messages, Message
+from notmuch.thread import Threads, Thread
+from notmuch.tag import Tags
from notmuch.globals import nmlib, STATUS, NotmuchError
__LICENSE__="GPL v3+"
__VERSION__='0.2.2'
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] python: lambda(p) is not P3k-compliant
2010-10-28 12:37 [PATCH 1/2] python: Import explicit including package name Sebastian Spaeth
@ 2010-10-28 12:37 ` Sebastian Spaeth
2010-10-28 19:13 ` [PATCH 1/2] python: Import explicit including package name Carl Worth
1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Spaeth @ 2010-10-28 12:37 UTC (permalink / raw)
To: notmuch
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
---
bindings/python/notmuch/message.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py
index 613cc4a..ac85cbb 100644
--- a/bindings/python/notmuch/message.py
+++ b/bindings/python/notmuch/message.py
@@ -748,7 +748,7 @@ class Message(object):
output += "\n\fbody{"
parts = format["body"]
- parts.sort(key=lambda(p): p["id"])
+ parts.sort(key=lambda x: x['id'])
for p in parts:
if not p.has_key("filename"):
output += "\n\fpart{ "
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] python: Import explicit including package name
2010-10-28 12:37 [PATCH 1/2] python: Import explicit including package name Sebastian Spaeth
2010-10-28 12:37 ` [PATCH 2/2] python: lambda(p) is not P3k-compliant Sebastian Spaeth
@ 2010-10-28 19:13 ` Carl Worth
1 sibling, 0 replies; 3+ messages in thread
From: Carl Worth @ 2010-10-28 19:13 UTC (permalink / raw)
To: Sebastian Spaeth, notmuch
[-- Attachment #1: Type: text/plain, Size: 436 bytes --]
On Thu, 28 Oct 2010 14:37:15 +0200, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:
> Please find these two patches making the notmuch module (more) python
> 3k compliant.
Thanks, Sebastian.
> I could not push them directly for some reason.
I've pushed them for now. Contact me off-list and we can work out what
the problem is that's keeping you from pushing python changes yourself.
-Carl
--
carl.d.worth@intel.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-28 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-28 12:37 [PATCH 1/2] python: Import explicit including package name Sebastian Spaeth
2010-10-28 12:37 ` [PATCH 2/2] python: lambda(p) is not P3k-compliant Sebastian Spaeth
2010-10-28 19:13 ` [PATCH 1/2] python: Import explicit including package name Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).