import os.path

BUILD_ROOT_DIR = "planex-build-root"

[SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = map(
    lambda x: os.path.join(BUILD_ROOT_DIR, x),
    ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD'])

SPECS_GLOB = os.path.join(SPECS_DIR, "*.spec")

import os.path

BUILD_ROOT_DIR = "planex-build-root"

[SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = [
    os.path.join(BUILD_ROOT_DIR, dir_name) for dir_name in
    ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD']]

SPECS_GLOB = os.path.join(SPECS_DIR, "*.spec")

Replace deprecated 'map' builtin with list comprehension
globals: Replace deprecated 'map' builtin with list comprehension

Signed-off-by: Euan Harris <c3b6e83069c8e9e3af49a38fec6026be89559638@citrix.com>

  import os.path
  
  BUILD_ROOT_DIR = "planex-build-root"
  
- [SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = map(
+ [SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = [
-     lambda x: os.path.join(BUILD_ROOT_DIR, x),
+     os.path.join(BUILD_ROOT_DIR, dir_name) for dir_name in
-     ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD'])
+     ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD']]
  
  SPECS_GLOB = os.path.join(SPECS_DIR, "*.spec")
  
Replace deprecated 'map' builtin with list comprehension
## Code Before:
import os.path

BUILD_ROOT_DIR = "planex-build-root"

[SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = map(
    lambda x: os.path.join(BUILD_ROOT_DIR, x),
    ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD'])

SPECS_GLOB = os.path.join(SPECS_DIR, "*.spec")

## Instruction:
Replace deprecated 'map' builtin with list comprehension
## Code After:
import os.path

BUILD_ROOT_DIR = "planex-build-root"

[SPECS_DIR, SOURCES_DIR, SRPMS_DIR, RPMS_DIR, BUILD_DIR] = [
    os.path.join(BUILD_ROOT_DIR, dir_name) for dir_name in
    ['SPECS', 'SOURCES', 'SRPMS', 'RPMS', 'BUILD']]

SPECS_GLOB = os.path.join(SPECS_DIR, "*.spec")
