File: //usr/lib/python3/dist-packages/ocrmypdf/__pycache__/api.cpython-38.pyc
U
��Z^�# � - @ s� d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m
Z
mZ d dlmZ ddl
mZ dd lmZ dd
lmZ G dd� d�ZG d
d� de�Zddd�Zdd� Zdddddddddddddddddddddddddddddddddddddddddddd�+ejejee eejeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeejejeeee
eef d�*dd�ZdS )� N)�suppress)�IntEnum)�Path)�Dict�List)�tqdm� )�run_pipeline)�
check_options)�parserc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �TqdmConsolean Wrapper to log messages in a way that is compatible with tqdm progress bar
This routes log messages through tqdm so that it can print them above the
progress bar, and then refresh the progress bar, rather than overwriting
it which looks messy.
For some reason Python 3.6 prints extra empty messages from time to time,
so we suppress those.
c C s || _ tjdd� dk| _d S )Nr � )� � )�file�sys�version_info�py36)�selfr � r �./usr/lib/python3/dist-packages/ocrmypdf/api.py�__init__, s zTqdmConsole.__init__c C sD | j r*|�� dkr@tj|�� d| jd� ntj|�� d| jd� d S )N� �
)�endr )r �stripr �write�rstripr )r �msgr r r r 0 s zTqdmConsole.writec C s"