%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/xdg/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/xdg/__pycache__/Menu.cpython-312.pyc |
� �u�c�� � � � d Z ddlZddlZddlZddlZddlZ ddlmc mZ ddlm Z mZ ddlmZ ddlmZ ddlmZ ddlZddlZd� Zd� Zd Zd ZdZdZd ZdZ G d� d� Z G d� d� Z! G d� d� Z" G d� d� Z# G d� d� Z$ G d� d� Z% G d� d� Z&d\ Z'Z(d� Z)d� Z*d � Z+d!� Z, G d"� d#e-� Z. G d$� d%� Z/d'd&�Z0y# e $ r ddl mc mZ Y ��w xY w)(a� Implementation of the XDG Menu Specification http://standards.freedesktop.org/menu-spec/ Example code: from xdg.Menu import parse, Menu, MenuEntry def print_menu(menu, tab=0): for submenu in menu.Entries: if isinstance(submenu, Menu): print (" " * tab) + unicode(submenu) print_menu(submenu, tab+1) elif isinstance(submenu, MenuEntry): print (" " * tab) + unicode(submenu.DesktopEntry) print_menu(parse()) � N)� xdg_data_dirs�xdg_config_dirs)�DesktopEntry)�ParsingError)�PY3c � � t j dk\ rRt j | � } t j dk\ rt j | � S t j | � S t j | t j � �� S )N)� � )r � ��id�ctx)�sys�version_info�ast�literal_eval�Constant�NameConstant�Name�Load)�names �*/usr/lib/python3/dist-packages/xdg/Menu.py� _ast_constr '