Revert "black: re-format"
This reverts commit 5731818de0ce446ceaafc7e75ae39da1b69942ae.
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
Change-Id: Ie61cdc8c7f2825b0d9d66be87a6a3a058de2b372
diff --git a/lib/var_stack.py b/lib/var_stack.py
index 77cf4a0..3ea3813 100644
--- a/lib/var_stack.py
+++ b/lib/var_stack.py
@@ -4,9 +4,9 @@
Define the var_stack class.
"""
+import sys
import collections
import copy
-import sys
try:
from robot.utils import DotDict
@@ -17,6 +17,7 @@
class var_stack:
+
r"""
Define the variable stack class.
@@ -64,7 +65,8 @@
[var1][0]: mike
"""
- def __init__(self, obj_name="var_stack"):
+ def __init__(self,
+ obj_name='var_stack'):
r"""
Initialize a new object of this class type.
@@ -88,7 +90,7 @@
buffer += self.__obj_name + ":\n"
indent = 2
- buffer += gp.sprint_varx("stack_dict", self.__stack_dict, indent)
+ buffer += gp.sprint_varx('stack_dict', self.__stack_dict, indent)
return buffer
@@ -99,7 +101,9 @@
sys.stdout.write(self.sprint_obj())
- def push(self, var_value, var_name=""):
+ def push(self,
+ var_value,
+ var_name=""):
r"""
push the var_name/var_value pair onto the stack.
@@ -120,7 +124,8 @@
else:
self.__stack_dict[var_name] = copy.deepcopy([var_value])
- def pop(self, var_name=""):
+ def pop(self,
+ var_name=""):
r"""
Pop the value for the given var_name from the stack and return it.