From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mail.openembedded.org (Postfix) with ESMTP id EDA44780BE for ; Fri, 24 Nov 2017 23:49:37 +0000 (UTC) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Nov 2017 15:49:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,449,1505804400"; d="scan'208,217";a="6061593" Received: from davidsol-mobl.amr.corp.intel.com (HELO [10.252.250.52]) ([10.252.250.52]) by orsmga003.jf.intel.com with ESMTP; 24 Nov 2017 15:49:37 -0800 To: "Burton, Ross" References: <0bddac7569ccd37263ce4d59d0ec3c4e2787246f.1508360667.git.alejandro.hernandez@linux.intel.com> From: Alejandro Hernandez Message-ID: <3257b871-dffa-9495-6eff-e4d9eb666cde@linux.intel.com> Date: Fri, 24 Nov 2017 17:49:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Cc: OE-core Subject: Re: [PATCH 1/4] python: Restructure python packaging and replace it with autopackaging X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2017 23:49:38 -0000 Content-Type: multipart/alternative; boundary="------------6D9AEC029CAA27AE854E88F5" Content-Language: en-US --------------6D9AEC029CAA27AE854E88F5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hey Ross, It is briefly explained: - Sitecustomize was fixed since encoding was deprecated. On 11/24/2017 10:57 AM, Burton, Ross wrote: > diff --git a/meta/recipes-devtools/python/python/sitecustomize.py > b/meta/recipes-devtools/python/python/sitecustomize.py > > index 273901898a0..4c8b5e2ba3d 100644 > --- a/meta/recipes-devtools/python/python/sitecustomize.py > +++ b/meta/recipes-devtools/python/python/sitecustomize.py > @@ -27,19 +27,11 @@ def __enableReadlineSupport(): >      except IOError: >          pass > > -def __enableDefaultEncoding(): > -    import sys > -    try: > -        sys.setdefaultencoding( "utf8" ) > -    except LookupError: > -        pass > - >  import sys >  try: >      import rlcompleter, readline >  except ImportError: >      pass >  else: > -    __enableDefaultEncoding() >      __registerExitHandler() >      __enableReadlineSupport() > > > This change isn't explained in the commit log. > > Ross --------------6D9AEC029CAA27AE854E88F5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hey Ross,


It is briefly explained:

- Sitecustomize was fixed since encoding was deprecated.




On 11/24/2017 10:57 AM, Burton, Ross wrote:
diff --git a/meta/recipes-devtools/python/python/sitecustomize.py b/meta/recipes-devtools/python/python/sitecustomize.py
index 273901898a0..4c8b5e2ba3d 100644
--- a/meta/recipes-devtools/python/python/sitecustomize.py
+++ b/meta/recipes-devtools/python/python/sitecustomize.py
@@ -27,19 +27,11 @@ def __enableReadlineSupport():
     except IOError:
         pass

-def __enableDefaultEncoding():
-    import sys
-    try:
-        sys.setdefaultencoding( "utf8" )
-    except LookupError:
-        pass
-
 import sys
 try:
     import rlcompleter, readline
 except ImportError:
     pass
 else:
-    __enableDefaultEncoding()
     __registerExitHandler()
     __enableReadlineSupport()

This change isn't explained in the commit log.

Ross 

--------------6D9AEC029CAA27AE854E88F5--