Skip to content

Commit 0b82241

Browse files
author
Nathan Lee
committed
Removed unused methods and added access to the restart init param value
1 parent e7d8acc commit 0b82241

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyrunner/core/pyrunner.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def proc_file(self, value):
105105
def context(self):
106106
return self.engine.context
107107

108-
def reset_env(self):
109-
os.environ.clear()
110-
os.environ.update(self._environ)
108+
@property
109+
def restart(self):
110+
return self._init_params['restart']
111111

112112
def plugin_serde(self, obj):
113113
if not isinstance(obj, serde.SerDe): raise Exception('SerDe plugin must implement the SerDe interface')

pyrunner/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.0.1'
1+
__version__ = '4.0.2'

0 commit comments

Comments
 (0)