Skip to content

Commit

Permalink
rename variable (address reviewer comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-its committed Sep 10, 2019
1 parent ea97908 commit a75c26d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions luigi/contrib/spark.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,9 @@ def app_command(self):
return [self.app, pickle_loc] + self.app_options()

def run(self):
name = re.sub(r'[^\w]', '_', self.name)
self.run_path = tempfile.mkdtemp(prefix=name)
self.run_pickle = os.path.join(self.run_path, '.'.join([name, 'pickle']))
path_name_fragment = re.sub(r'[^\w]', '_', self.name)
self.run_path = tempfile.mkdtemp(prefix=path_name_fragment)
self.run_pickle = os.path.join(self.run_path, '.'.join([path_name_fragment, 'pickle']))
with open(self.run_pickle, 'wb') as fd:
# Copy module file to run path.
module_path = os.path.abspath(inspect.getfile(self.__class__))
Expand Down

0 comments on commit a75c26d

Please sign in to comment.