Bug 1311248 - Fix 'line too long' in mozinfo.py to unhide flake8, r?ted draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 21 Oct 2016 14:01:01 -0400
changeset 428200 a64a0559ff8528e59615cf678853ff9c3e460832
parent 428199 bb308126593af6f0cd6fd0fab9301ed30dfc01ac
child 428201 a920c09cb49c97432a201dd9f0646449995f550f
push id33248
push userahalberstadt@mozilla.com
push dateFri, 21 Oct 2016 18:30:15 +0000
reviewersted
bugs1311248
milestone52.0a1
Bug 1311248 - Fix 'line too long' in mozinfo.py to unhide flake8, r?ted MozReview-Commit-ID: 7o3ldxRlgRI
testing/mozbase/mozinfo/mozinfo/mozinfo.py
--- a/testing/mozbase/mozinfo/mozinfo/mozinfo.py
+++ b/testing/mozbase/mozinfo/mozinfo/mozinfo.py
@@ -89,17 +89,18 @@ if system in ["Microsoft", "Windows"]:
     os_version = "%d.%d" % (major, minor)
 elif system.startswith('MINGW'):
     # windows/mingw python build (msys)
     info['os'] = 'win'
     os_version = version = unknown
 elif system == "Linux":
     # Try to get a useful distro name/version out of os-release.
     try:
-        os_info = dict(map(lambda x: x.strip('"'), l.split('=')) for l in open('/etc/os-release', 'rb').read().splitlines())
+        os_info = dict(map(lambda x: x.strip('"'), l.split('='))
+                       for l in open('/etc/os-release', 'rb').read().splitlines())
     except IOError:
         os_info = {}
 
     info['os'] = 'linux'
     version = os_version = os_info.get('VERSION_ID', release)
     info['linux_distro'] = os_info.get('NAME', 'lfs')
 
 elif system in ['DragonFly', 'FreeBSD', 'NetBSD', 'OpenBSD']: