From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/, pym/portage/util/
Date: Sat, 4 Jun 2011 00:01:31 +0000 (UTC) [thread overview]
Message-ID: <f95d917258f4bf9d56f20588b6dab5f5d1e0cc40.zmedico@gentoo> (raw)
commit: f95d917258f4bf9d56f20588b6dab5f5d1e0cc40
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 4 00:01:13 2011 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Jun 4 00:01:13 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f95d9172
Move pickle import out of base portage module.
---
pym/portage/__init__.py | 4 ----
pym/portage/util/__init__.py | 2 +-
pym/portage/util/mtimedb.py | 6 +++++-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 9732a74..1b96dab 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -17,10 +17,6 @@ try:
errno.ESTALE = -1
import re
import types
- try:
- import cPickle as pickle
- except ImportError:
- import pickle
try:
from subprocess import getstatusoutput as subprocess_getstatusoutput
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index 138553a..28e9428 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -28,12 +28,12 @@ import traceback
import portage
portage.proxy.lazyimport.lazyimport(globals(),
+ 'pickle',
'portage.dep:Atom',
'portage.util.listdir:_ignorecvs_dirs'
)
from portage import StringIO
from portage import os
-from portage import pickle
from portage import subprocess_getstatusoutput
from portage import _encodings
from portage import _os_merge
diff --git a/pym/portage/util/mtimedb.py b/pym/portage/util/mtimedb.py
index 175bd8f..571fe5a 100644
--- a/pym/portage/util/mtimedb.py
+++ b/pym/portage/util/mtimedb.py
@@ -4,9 +4,13 @@
__all__ = ['MtimeDB']
import copy
+try:
+ import cPickle as pickle
+except ImportError:
+ import pickle
import portage
-from portage import pickle, _unicode_encode
+from portage import _unicode_encode
from portage.data import portage_gid, uid
from portage.localization import _
from portage.util import apply_secpass_permissions, atomic_ofstream, writemsg
next reply other threads:[~2011-06-04 0:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-04 0:01 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-10-02 5:36 [gentoo-commits] proj/portage:master commit in: pym/portage/, pym/portage/util/ Zac Medico
2011-12-11 6:41 Zac Medico
2012-02-04 14:47 Zac Medico
2013-10-02 9:50 Arfrever Frehtes Taifersar Arahesis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f95d917258f4bf9d56f20588b6dab5f5d1e0cc40.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox