- modules_pcimap_path = "%s/lib/modules/%s/modules.pcimap" % \
- (SYSIMG_PATH,kernel_version)
- if not os.access(modules_pcimap_path,os.R_OK):
- print( "WARNING: Unable to read %s" % modules_pcimap_path )
+ modules_pcimap_path = "{}/lib/modules/{}/modules.pcimap"\
+ .format(SYSIMG_PATH, kernel_version)
+ if not os.access(modules_pcimap_path, os.R_OK):
+ print("WARNING: Unable to read {}".format(modules_pcimap_path))