Bug 71418

Summary: xcb-proto git: 'inconsistent use of tabs and spaces in indentation' breaks python3
Product: XCB Reporter: Michał Górny <mgorny>
Component: ProtocolAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact: xcb mailing list dummy <xcb>
Severity: normal    
Priority: medium CC: psychon
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Michał Górny 2013-11-09 08:27:16 UTC
When trying to build libxcb with Python3.3 I'm getting:

/usr/bin/python3.3 /tmp/portage/x11-libs/libxcb-9999/work/libxcb-9999/src/c_client.py -p  /usr/share/xcb/xc_misc.xml
Traceback (most recent call last):
  File "/tmp/portage/x11-libs/libxcb-9999/work/libxcb-9999/src/c_client.py", line 2982, in <module>
    from xcbgen.state import Module
  File "/usr/lib64/python3.3/site-packages/xcbgen/state.py", line 7, in <module>
    from xcbgen import matcher
  File "/usr/lib64/python3.3/site-packages/xcbgen/matcher.py", line 12, in <module>
    from xcbgen.xtypes import *
  File "/usr/lib64/python3.3/site-packages/xcbgen/xtypes.py", line 82
    new_fd = Field(self, module.get_type_name('INT32'), fd_name, True, False, False, None, True)
                                                                                               ^
TabError: inconsistent use of tabs and spaces in indentation

This is a recent regression in xcb-proto git. I suspect the tab in first comment line of make_fd_of().
Comment 1 Matt Turner 2013-11-12 02:32:21 UTC
Patch sent to the mailing list.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.