code: def set_lock_pass(self, lockPass):
          
          assert isinstance(lockPass, basestring), "lockPass must be string"
          lockPass = str(lockPass)
          assert '\n' not in lockPass, "lockPass must be not contain a new line"
          self.__lockPass = lockPass
docs: Set the locking pass
  
          :Parameters:
              #. lockPass (string): The locking pass.