docs: def version_to_write(self, found):  # type: (str) -> Version
          """
          Take 1st version string found.
          :param found: possible version string
          :return:
          """
          first = False
          if self.version is None:
              first = True
              try:
                  self.current_version, self.version, self.schema = version_object_and_next(
                      found.strip(" ")
                  )
              except:
                  raise JiggleVersionException("Shouldn't throw here.")
  
          if first:
              logger.info(
                  "Updating from version {0} to {1}".format(
                      unicode(self.version), unicode(self.version)
                  )
              )
          return self.version