~ubuntu-core-dev/ubuntu/xenial/ubuntu-release-upgrader/xenial

« back to all changes in this revision

Viewing changes to DistUpgrade/DistUpgradeQuirks.py

  • Committer: Steve Langasek
  • Date: 2016-04-22 00:40:49 UTC
  • Revision ID: steve.langasek@canonical.com-20160422004049-l99ttdiyvcswn23y
More pep8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
            pid = subprocess.check_output(["pgrep", "-u", self._uid,
402
402
                                           "gnome-session"])
403
403
            pid = pid.decode().split('\n')[0]
404
 
            with open('/proc/'+pid+'/environ', 'r') as f:
 
404
            with open('/proc/' + pid + '/environ', 'r') as f:
405
405
                data = f.read().split('\x00')
406
406
            for line in data:
407
407
                if len(line):