code: def edit(self, changelist=0):
          
          command = 'reopen' if self.action in ('add', 'edit') else 'edit'
          if int(changelist):
              self._connection.run([command, '-c', str(changelist.change), self.depotFile])
          else:
              self._connection.run([command, self.depotFile])
  
          self.query()
docs: Checks out the file
  
          :param changelist: Optional changelist to checkout the file into
          :type changelist: :class:`.Changelist`