Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 410753

Summary: dev-python/py any version requires python3 support
Product: Gentoo Linux Reporter: Ian Delaney (RETIRED) <idella4>
Component: [OLD] LibraryAssignee: Python Gentoo Team <python>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 407039    

Description Ian Delaney (RETIRED) gentoo-dev 2012-04-04 09:03:13 UTC
Triggered by another bug, it is found that package py has content that does not support python3.

/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py

    def _getbytestring(self, s):
        # XXX review this and the whole logic
        if self.encoding and sys.version_info[0] < 3 and isinstance(s, unicode):
etc

The module unicode no longer exists.  The function fails under at least python3.
Comment 1 Mike Gilbert gentoo-dev 2012-05-09 03:09:13 UTC
That's why it checks sys.version_info[0]. Works for me.