
from __future__ import absolute_import, division, print_function
import sys
import time
import datetime


def timeStamp():
    '''Return time stamp'''
    t = time.time()
    fmt = '[%Y-%m-%d %H:%M:%S]'
    return datetime.datetime.fromtimestamp(t).strftime(fmt)


def printStatus(msg):
    '''Print status message'''
    print('{}    {}'.format(timeStamp(), msg), file=sys.stderr)
    sys.stderr.flush()


from __future__ import absolute_import, division, print_function
import sys
import time
import datetime


def timeStamp():
    '''Return time stamp'''
    t = time.time()
    fmt = '[%Y-%m-%d %H:%M:%S]'
    return datetime.datetime.fromtimestamp(t).strftime(fmt)


def printStatus(msg):
    '''Print status message'''
    print('{}    {}'.format(timeStamp(), msg), file=sys.stderr)
    sys.stderr.flush()


def exitScript(num=1):
    '''Exit script'''
    sys.exit(num)

Exit method. - (New) Added exit method.
Exit method.
- (New) Added exit method.

  
  from __future__ import absolute_import, division, print_function
  import sys
  import time
  import datetime
  
  
  def timeStamp():
      '''Return time stamp'''
      t = time.time()
      fmt = '[%Y-%m-%d %H:%M:%S]'
      return datetime.datetime.fromtimestamp(t).strftime(fmt)
  
  
  def printStatus(msg):
      '''Print status message'''
      print('{}    {}'.format(timeStamp(), msg), file=sys.stderr)
      sys.stderr.flush()
  
+ 
+ def exitScript(num=1):
+     '''Exit script'''
+     sys.exit(num)
+ 
Exit method. - (New) Added exit method.
## Code Before:

from __future__ import absolute_import, division, print_function
import sys
import time
import datetime


def timeStamp():
    '''Return time stamp'''
    t = time.time()
    fmt = '[%Y-%m-%d %H:%M:%S]'
    return datetime.datetime.fromtimestamp(t).strftime(fmt)


def printStatus(msg):
    '''Print status message'''
    print('{}    {}'.format(timeStamp(), msg), file=sys.stderr)
    sys.stderr.flush()

## Instruction:
Exit method. - (New) Added exit method.
## Code After:

from __future__ import absolute_import, division, print_function
import sys
import time
import datetime


def timeStamp():
    '''Return time stamp'''
    t = time.time()
    fmt = '[%Y-%m-%d %H:%M:%S]'
    return datetime.datetime.fromtimestamp(t).strftime(fmt)


def printStatus(msg):
    '''Print status message'''
    print('{}    {}'.format(timeStamp(), msg), file=sys.stderr)
    sys.stderr.flush()


def exitScript(num=1):
    '''Exit script'''
    sys.exit(num)
