python (3.12.0)
͑e > d dl Z d dlZd dlZd dlZd dlZd dlmZ G d de j Z G d dej Z
d Zd Ze
d k( rMd
ej v r ed ydej v r e j y ej yy)
N)supportc J e Zd Z d Zd Zd Zd Zd Zd Zd Z d Z
d Zd
Zy)samplecmdclassc t d y )NzHello from preloopprintselfs A/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_cmd.pypreloopzsamplecmdclass.preloop s
"# c t d y )NzHello from postloopr r s r postloopzsamplecmdclass.postloop s
#$r
c t d y )Nz"This is the completedefault methodr )r
ignoreds r completedefaultzsamplecmdclass.completedefault s
23r
c t d y )Nzcomplete commandr r s r complete_commandzsamplecmdclass.complete_command s
!r
c y N )r
ss r do_shellzsamplecmdclass.do_shell s r
c |j }t | dk7 rt d y |D cg c]
}t | }}t |d |d z y c c}w # t $ r t d Y y w xY w)N z*** invalid number of argumentsz*** arguments should be numbersr )splitlenr int
ValueError)r
r lis r do_addzsamplecmdclass.do_add sv
GGIq6Q;34 !"#AQ#A# ad1Q4i $ 34 s"