All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: yocto@yoctoproject.org
Subject: [[PATCH][AUH] 1/3] Small fixes to use with Python3.
Date: Mon, 20 Jun 2016 16:27:48 -0500	[thread overview]
Message-ID: <1466458070-20099-1-git-send-email-anibal.limon@linux.intel.com> (raw)

[YOCTO #9747]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
---
 modules/recipe/svn.py         | 2 +-
 modules/utils/emailhandler.py | 2 +-
 upgradehelper.py              | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/recipe/svn.py b/modules/recipe/svn.py
index 6d60529..6dadafd 100644
--- a/modules/recipe/svn.py
+++ b/modules/recipe/svn.py
@@ -22,7 +22,7 @@
 # Marius Avram      <marius.avram@intel.com>
 #
 
-from base import Recipe
+from recipe.base import Recipe
 
 class SvnRecipe(Recipe):
     pass
diff --git a/modules/utils/emailhandler.py b/modules/utils/emailhandler.py
index 970fb59..8436364 100644
--- a/modules/utils/emailhandler.py
+++ b/modules/utils/emailhandler.py
@@ -33,7 +33,7 @@ from email.mime.base import MIMEBase
 from email.mime.multipart import MIMEMultipart
 from email.generator import Generator
 import shutil
-from cStringIO import StringIO
+from io import StringIO
 
 class Email(object):
     def __init__(self, settings):
diff --git a/upgradehelper.py b/upgradehelper.py
index d4b8afb..499c539 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # vim: set ts=4 sw=4 et:
 #
 # Copyright (c) 2013 - 2014 Intel Corporation
@@ -40,7 +40,7 @@ from logging import critical as C
 import re
 import signal
 import sys
-import ConfigParser as cp
+import configparser as cp
 from datetime import datetime
 from datetime import date
 import shutil
-- 
2.1.4



             reply	other threads:[~2016-06-20 21:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 21:27 Aníbal Limón [this message]
2016-06-20 21:27 ` [[PATCH][AUH] 2/3] upgradehelper.py: Move build of gcc runtime after discover packages Aníbal Limón
2016-06-20 21:27 ` [[PATCH][AUH] 3/3] upgradehelper.py: Disable _order_pkgs_to_upgrade functionality Aníbal Limón
2016-06-21 14:08   ` Leonardo Sandoval

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=1466458070-20099-1-git-send-email-anibal.limon@linux.intel.com \
    --to=anibal.limon@linux.intel.com \
    --cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.