관리-도구
편집 파일: clean.cpython-36.pyc
3 �ft`t � @ s� d dl mZ d dl mZ d dlmZ d dlmZmZ d dlm Z d dlZ d dlZ d dlZ d dl Z d dlZ d dlZd dlZd dlZd dlZejd�Zdd d gdgd gd gddd gd�Zd d� Zdd� Zdd� Zdd� ZG dd� dej�ZdS )� )�absolute_import)�unicode_literals)�commands)�_�P_)�miscN�dnf�metadata�dbcachezexpire-cache�packages)r r r zexpire-cache�allc c sV xPt j| �D ]B\}}}t jj|| �}x(|D ] }t jj||�}t jj|�V q*W qW dS )z:Traverse dirpath recursively and yield relative filenames.N)�os�walk�path�relpath�join�normpath)�dirpath�root�dirs�files�base�fr � r �/usr/lib/python3.6/clean.py�_tree1 s r c s � fdd�| D �S )z5Yield those filenames that match any of the patterns.c 3 s( | ] }� D ]}t j||�r |V q qd S )N)�re�match)�.0r �p)�patternsr r � <genexpr><