c-client.py: Fix python-3 AttributeError: 'dict' object has no attribute 'iteritems'
This fixes a regression introduced by ea71d7d7e3
https://bugs.freedesktop.org/show_bug.cgi?id=55690
Reviewed-by: Peter Harris <pharris@opentext.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4ffe54f690
commit
9db4517c87
|
@ -2616,7 +2616,7 @@ def _man_request(self, name, cookie_type, void, aux):
|
||||||
(cookie_type, self.c_reply_name, base_func_name))
|
(cookie_type, self.c_reply_name, base_func_name))
|
||||||
f.write('.SH ERRORS\n')
|
f.write('.SH ERRORS\n')
|
||||||
if hasattr(self, "doc") and self.doc:
|
if hasattr(self, "doc") and self.doc:
|
||||||
for errtype, errtext in self.doc.errors.iteritems():
|
for errtype, errtext in self.doc.errors.items():
|
||||||
f.write('.IP \\fI%s\\fP 1i\n' % (_t(('xcb', errtype, 'error'))))
|
f.write('.IP \\fI%s\\fP 1i\n' % (_t(('xcb', errtype, 'error'))))
|
||||||
errtext = re.sub(r'`([^`]+)`', r'\\fI\1\\fP', errtext)
|
errtext = re.sub(r'`([^`]+)`', r'\\fI\1\\fP', errtext)
|
||||||
f.write('%s\n' % (errtext))
|
f.write('%s\n' % (errtext))
|
||||||
|
@ -2634,7 +2634,7 @@ def _man_request(self, name, cookie_type, void, aux):
|
||||||
see = ['.BR %s (3)' % 'xcb-requests']
|
see = ['.BR %s (3)' % 'xcb-requests']
|
||||||
if self.doc.example:
|
if self.doc.example:
|
||||||
see.append('.BR %s (3)' % 'xcb-examples')
|
see.append('.BR %s (3)' % 'xcb-examples')
|
||||||
for seename, seetype in self.doc.see.iteritems():
|
for seename, seetype in self.doc.see.items():
|
||||||
if seetype == 'program':
|
if seetype == 'program':
|
||||||
see.append('.BR %s (1)' % seename)
|
see.append('.BR %s (1)' % seename)
|
||||||
elif seetype == 'event':
|
elif seetype == 'event':
|
||||||
|
@ -2764,7 +2764,7 @@ def _man_event(self, name):
|
||||||
see = ['.BR %s (3)' % 'xcb_generic_event_t']
|
see = ['.BR %s (3)' % 'xcb_generic_event_t']
|
||||||
if self.doc.example:
|
if self.doc.example:
|
||||||
see.append('.BR %s (3)' % 'xcb-examples')
|
see.append('.BR %s (3)' % 'xcb-examples')
|
||||||
for seename, seetype in self.doc.see.iteritems():
|
for seename, seetype in self.doc.see.items():
|
||||||
if seetype == 'program':
|
if seetype == 'program':
|
||||||
see.append('.BR %s (1)' % seename)
|
see.append('.BR %s (1)' % seename)
|
||||||
elif seetype == 'event':
|
elif seetype == 'event':
|
||||||
|
|
Loading…
Reference in New Issue