
    l:i                     (    d dl Z d dlmZ ed        Zy)    N)	decoratorc                 X   |j                   j                  d      s | |      S  | |j                  |j                   dd             }|r+t        |t        j
                        rdj                  |      S t        |t              r|D cg c]  }dj                  |       c}S |S c c}w )z1Removes sudo before calling fn and adds it after.zsudo    N)scriptzsudo {})r   
startswithupdate
isinstancesixstring_typesformatlist)fncommandresultxs       L/var/www/html/bot/venv/lib/python3.12/site-packages/thefuck/specific/sudo.pysudo_supportr      s     >>$$W-'{gnnQR&89:F*VS%5%56  ((	FD	!.45
!!!$55 6s   
B')r
   r   r        r   <module>r      s    
   r   