~apport-hackers/apport/trunk

« back to all changes in this revision

Viewing changes to bin/apport-unpack

  • Committer: Brian Murray
  • Date: 2019-05-20 18:54:29 UTC
  • Revision ID: brian@canonical.com-20190520185429-mvl3yz2dhzs5jaug
bin/apport-unpack, problem_report.py: define unicode as a variable to quiet pyflakes

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
def help():
22
22
    print(_('Usage: %s <report> <target directory>') % sys.argv[0])
23
23
 
24
 
if sys.version[0] < '3':
 
24
 
 
25
if sys.version[0] > '3':
 
26
    unicode = str  # pyflakes3
 
27
    t_str = str
 
28
else:
25
29
    t_str = unicode
26
 
else:
27
 
    t_str = str
28
30
 
29
31
gettext.textdomain('apport')
30
32