catherder/classes.py
def commit_state(self, new_cache, message, question=None):
        r"""Commit the specified file to the cache repository using the
        provided commit message.

        Args:
            new_cache (str): Path to file that should be created. The path
                should be relative to the repository root. The file is
                removed after being committed.

        """
        new_cache_local = os.path.join(self.project_dir, new_cache)
        if question is None:
            question = "Create new cache?"
        print(question)
        if self.always_yes or (input('y/[n]?: ').lower() in ['y', 'yes']):
            with open(new_cache_local, 'rb') as fd:
                self.cache_repo.create_file(new_cache.replace(
                    os.path.sep, '/'), message, fd.read())
        os.remove(new_cache_local)
r"""Commit the specified file to the cache repository using the
        provided commit message.

        Args:
            new_cache (str): Path to file that should be created. The path
                should be relative to the repository root. The file is
                removed after being committed.

        
r"""Commit the specified file to the cache repository using the
provided commit message.
r " " " Commit the specified file to the cache repository using the provided commit message .
def commit_state(self, new_cache, message, question=None):
        new_cache_local = os.path.join(self.project_dir, new_cache)
        if question is None:
            question = "Create new cache?"
        print(question)
        if self.always_yes or (input('y/[n]?: ').lower() in ['y', 'yes']):
            with open(new_cache_local, 'rb') as fd:
                self.cache_repo.create_file(new_cache.replace(
                    os.path.sep, '/'), message, fd.read())
        os.remove(new_cache_local)
def commit_state ( self , new_cache , message , question = None ) : new_cache_local = os . path . join ( self . project_dir , new_cache ) if question is None : question = "Create new cache?" print ( question ) if self . always_yes or ( input ( 'y/[n]?: ' ) . lower ( ) in [ 'y' , 'yes' ] ) : with open ( new_cache_local , 'rb' ) as fd : self . cache_repo . create_file ( new_cache . replace ( os . path . sep , '/' ) , message , fd . read ( ) ) os . remove ( new_cache_local )
r"""Commit the specified file to the cache repository using the
provided commit message.
r " " " Commit the specified file to the cache repository using the provided commit message .
r"""Commit the specified file to the cache repository using the
        provided commit message.

        Args:
            new_cache (str): Path to file that should be created. The path
                should be relative to the repository root. The file is
                removed after being committed.

        """
self
new_cache
Path to file that should be created. The path
should be relative to the repository root. The file is
removed after being committed.
Path to file that should be created . The path should be relative to the repository root . The file is removed after being committed .
message
question