File: //lib/python3.6/site-packages/dnf/__pycache__/persistor.cpython-36.opt-1.pyc
3
ft`o @ s d dl mZ d dl mZ d dlmZ d dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
Z
d dlZejdZG dd deZG dd d eZG d
d deZdS ) )absolute_import)unicode_literals)_Ndnfc @ s, e Zd Zdd Zg fddZedd ZdS )JSONDBc C s0 t jj|s,tjjt jj| | j|g d S )N)ospathisfiler utilZ
ensure_dirdirname_write_json_db)self json_path r /usr/lib/python3.6/persistor.py_check_json_db+ s zJSONDB._check_json_dbc C s t |d}|j }W d Q R X |dkrDtjtd| | j|| n<ytj|}W n, tk
r~ } ztj| W Y d d }~X nX |S )Nr z%s is empty file) openreadloggerwarningr r jsonloads
ValueError)r
r defaultfcontenter r r _get_json_db1 s zJSONDB._get_json_dbc
C s&