Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410753 - dev-python/py any version requires python3 support
Summary: dev-python/py any version requires python3 support
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 407039
  Show dependency tree
 
Reported: 2012-04-04 09:03 UTC by Ian Delaney (RETIRED)
Modified: 2012-05-09 03:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.