t437.trans 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Module(body=[Import(names=[alias(name='re',
  2. asname=None)]),
  3. Assign(targets=[Name(id='m',
  4. ctx=Store())],
  5. value=Call(func=Attribute(value=Name(id='re',
  6. ctx=Load()),
  7. attr='match',
  8. ctx=Load()),
  9. args=[Str(s='([0-9]+)([a-z]+)([A-Z]*)'),
  10. Str(s='345abu')],
  11. keywords=[],
  12. starargs=None,
  13. kwargs=None)),
  14. Print(dest=None,
  15. values=[Str(s='\ngroup')],
  16. nl=True),
  17. Print(dest=None,
  18. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  19. ctx=Load()),
  20. attr='group',
  21. ctx=Load()),
  22. args=[],
  23. keywords=[],
  24. starargs=None,
  25. kwargs=None),
  26. ops=[Eq()],
  27. comparators=[Str(s='345abu')])],
  28. nl=True),
  29. Print(dest=None,
  30. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  31. ctx=Load()),
  32. attr='group',
  33. ctx=Load()),
  34. args=[Num(n=0)],
  35. keywords=[],
  36. starargs=None,
  37. kwargs=None),
  38. ops=[Eq()],
  39. comparators=[Str(s='345abu')])],
  40. nl=True),
  41. Print(dest=None,
  42. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  43. ctx=Load()),
  44. attr='group',
  45. ctx=Load()),
  46. args=[Num(n=1)],
  47. keywords=[],
  48. starargs=None,
  49. kwargs=None),
  50. ops=[Eq()],
  51. comparators=[Str(s='345')])],
  52. nl=True),
  53. Print(dest=None,
  54. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  55. ctx=Load()),
  56. attr='group',
  57. ctx=Load()),
  58. args=[Num(n=2)],
  59. keywords=[],
  60. starargs=None,
  61. kwargs=None),
  62. ops=[Eq()],
  63. comparators=[Str(s='abu')])],
  64. nl=True),
  65. Print(dest=None,
  66. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  67. ctx=Load()),
  68. attr='group',
  69. ctx=Load()),
  70. args=[Num(n=3)],
  71. keywords=[],
  72. starargs=None,
  73. kwargs=None),
  74. ops=[Eq()],
  75. comparators=[Str(s='')])],
  76. nl=True),
  77. Print(dest=None,
  78. values=[Str(s='\ngroups')],
  79. nl=True),
  80. Print(dest=None,
  81. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  82. ctx=Load()),
  83. attr='groups',
  84. ctx=Load()),
  85. args=[],
  86. keywords=[],
  87. starargs=None,
  88. kwargs=None),
  89. ops=[Eq()],
  90. comparators=[Tuple(elts=[Str(s='345'),
  91. Str(s='abu'),
  92. Str(s='')],
  93. ctx=Load())])],
  94. nl=True),
  95. Print(dest=None,
  96. values=[Compare(left=Call(func=Attribute(value=Name(id='m',
  97. ctx=Load()),
  98. attr='groups',
  99. ctx=Load()),
  100. args=[Str(s='default')],
  101. keywords=[],
  102. starargs=None,
  103. kwargs=None),
  104. ops=[Eq()],
  105. comparators=[Tuple(elts=[Str(s='345'),
  106. Str(s='abu'),
  107. Str(s='')],
  108. ctx=Load())])],
  109. nl=True)])