quilt/db.py
def check_version(self, version_file):
        """ Checks if the .version file in dirname has the correct supported
            version number """
        # The file contains a version number as a decimal integer, optionally
        # followed by a newline
        with open(version_file, "r") as f:
            version = f.read(10)

        version = version.rstrip("\r\n")

        if len(version) >= 10 or version != str(DB_VERSION):
            raise DBError("The quilt meta-data version of %s is not supported "
                          "by python-quilt. python-quilt only supports "
                          "version %s." % (version, DB_VERSION))
def check_version(self, version_file):
        """ Checks if the .version file in dirname has the correct supported
            version number """
        # The file contains a version number as a decimal integer, optionally
        # followed by a newline
        with open(version_file, "r") as f:
            version = f.read(10)

        version = version.rstrip("\r\n")

        if len(version) >= 10 or version != str(DB_VERSION):
            raise DBError("The quilt meta-data version of %s is not supported "
                          "by python-quilt. python-quilt only supports "
                          "version %s." % (version, DB_VERSION))
Checks if the .version file in dirname has the correct supported
            version number