Revision f59418db
b/autotools/build-bash-completion | ||
---|---|---|
19 | 19 |
# 02110-1301, USA. |
20 | 20 |
|
21 | 21 |
|
22 |
import optparse |
|
23 | 22 |
import os |
24 |
import sys |
|
25 | 23 |
import re |
26 | 24 |
from cStringIO import StringIO |
27 | 25 |
|
... | ... | |
263 | 261 |
self.args = args |
264 | 262 |
|
265 | 263 |
for opt in opts: |
264 |
# While documented, these variables aren't seen as public attributes by |
|
265 |
# pylint. pylint: disable-msg=W0212 |
|
266 | 266 |
opt.all_names = sorted(opt._short_opts + opt._long_opts) |
267 | 267 |
|
268 | 268 |
def _FindFirstArgument(self, sw): |
... | ... | |
591 | 591 |
""" |
592 | 592 |
try: |
593 | 593 |
commands = getattr(module, "commands") |
594 |
except AttributeError, err:
|
|
594 |
except AttributeError: |
|
595 | 595 |
raise Exception("Script %s doesn't have 'commands' attribute" % |
596 | 596 |
filename) |
597 | 597 |
|
Also available in: Unified diff