/usr/share/pyshared/xdiagnose/info.py is in xdiagnose 2.5.2ubuntu0.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''High level package information'''
PROGNAME = 'xdiagnose'
URL = 'http://launchpad.net/xdiagnose'
EMAIL = 'bryce@canonical.com'
VERSION = None
DATE_STARTED = '2010-11-04'
DATE_COPYRIGHT = '2011'
LICENSE_URL = 'http://www.gnu.org/copyleft/gpl.html'
SHORT_DESCRIPTION = 'Analysis tools for troubleshooting X.org problems'
DESCRIPTION = """
This package is a friendly GUI application for diagnosing several
common X.org problems.
"""
class _contributor:
'''Information about a person contributing to this project'''
def __init__(self, name, email, started=None, roles=None, translating=None):
self.name = name
self.email = email
self.started = started
if roles is None:
self.roles = []
elif type(roles) is not list:
self.roles = [roles]
else:
self.roles = roles
self.translation_languages = translating
return
def to_dict(self):
'''Returns the object in a dict suitable for json'''
return self.__dict__
@property
def display_email(self):
'''Formatted string version of email address'''
if self.email:
return '<%s>' % self.email
else:
return ''
@property
def display_roles(self):
'''Formatted string version of roles list'''
if self.roles:
return '[%s]' % ','.join(self.roles)
else:
return ''
LEAD_DEVELOPER = _contributor(
'Bryce Harrington', 'bryce@canonical.com', started='2010-11-04',
roles=['lead', 'developer'], translating=None,
)
CONTRIBUTORS = [
_contributor(
'Gabor Kelemen', 'kelemeng@ubuntu.com', started='2012-01-21',
roles=['developer', 'translator'], translating=None),
]
if __name__ == "__main__":
print PROGNAME, VERSION, URL
print "Copyright (C) %s %s <%s>" % (
DATE_COPYRIGHT, LEAD_DEVELOPER.name, LEAD_DEVELOPER.email)
print
for contributor in CONTRIBUTORS:
print "%s %s %s" % (
contributor.name,
contributor.display_email,
contributor.display_roles)
|