文件操作 - __init__.cpython-310.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/ssh_import_id/__pycache__/__init__.cpython-310.pyc
编辑文件内容
o H��_0 � @ s� d dl Z d dlZd dlZzd dlmZ W n ey eZY nw d dlZd dlZd dl Z d dl Z d dlZd dlZ d dlmZ d dlmZmZ d dlZddlmZ dZdZejd ejd � e jddd �Zejddddd� ejdddddd� ejdddddd� ejdd d!d"d#� de_g Zd$d%� Zd&d'� Z d(d)� Z!dGd+d,�Z"d-d.� Z#d/d0� Z$d1d2� Z%dHd3d4�Z&d5d6� Z'd7d8� Z(d9d:� Z)d;d<� Z*d=d>� Z+dId?d@�Z,dAdB� Z-dCdD� Z.dEdF� Z/dS )J� N)�JSONDecodeError)� quote_plus)�Request�urlopen� )�VERSIONg .@�lpz%%(asctime)s %(levelname)s %(message)s)�format�levelz9Authorize SSH public keys from trusted online identities.z ssh-import-id)�description�progz-oz--output�FILEz5Write output to file (default ~/.ssh/authorized_keys))�metavar�helpz-rz--remove� store_trueFz&Remove a key from authorized keys file)�action�defaultr z-uz--useragent� USERAGENT� z$Append to the http user agent string)r r r �userids�+�USERIDzUser IDs to import)�nargsr r c C s$ t D ] } tj�| �rt�| � qdS )z Cleanup tempfiles N)� TEMPFILES�os�path�exists�unlink)�f� r �8/usr/lib/python3/dist-packages/ssh_import_id/__init__.py�cleanupB s ��r! c C s t �| � t� t�d� dS )z. The only thing in Perl worth keeping r N)�logging�errorr! �sys�exit)�msgr r r �dieK s r'