%PDF- %PDF-
Direktori : /lib/python3/dist-packages/pyudev/__pycache__/ |
Current File : //lib/python3/dist-packages/pyudev/__pycache__/_util.cpython-312.pyc |
� 9*�bd � �d � d Z ddlZddlZddlZddlZddlmZ d� Zd� Zd� Z d� Z d� Zd � Zd � Z d� Zy)z| pyudev._util ============ Internal utilities .. moduleauthor:: Sebastian Wiesner <lunaryorn@gmail.com> � N)�check_outputc �l � t | t � s#| j t j � � } | S )z� Return the given ``value`` as bytestring. If the given ``value`` is not a byte string, but a real unicode string, it is encoded with the filesystem encoding (as in :func:`sys.getfilesystemencoding()`). )� isinstance�bytes�encode�sys�getfilesystemencoding��values �./usr/lib/python3/dist-packages/pyudev/_util.py�ensure_byte_stringr "