Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion basescript/basescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, args=None):
self.stats = Dummy()

args = { n: getattr(self.args, n) for n in vars(self.args) }
args['func'] = self.args.func.func_name
args['func'] = self.args.func.__name__
self.log.debug("basescript init", **args)

def start(self):
Expand Down
2 changes: 1 addition & 1 deletion basescript/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, *streams):
self.streams = streams

def write(self, data):
print data
print (data)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ManishaBayya @UmangThapliyal @RamanjaneyuluIdavalapati @prasannababuAddagiri I don't see the Stream class being used anywhere in the code. Can you please remove it entirely?

for s in self.streams:
s.write(data)

Expand Down
2 changes: 1 addition & 1 deletion examples/adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def define_args(self, parser):
def run(self):
self.log.info("Starting run of script ...")

print self.a + self.b + self.args.c
print (self.a + self.b + self.args.c)

self.log.info("Script is done")

Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class HelloWorld(BaseScript):
def run(self):
print "Hello world"
print ("Hello world")

if __name__ == '__main__':
HelloWorld().start()