File: simple_extract_method_with_similar.py

package info (click to toggle)
python-lsp-rope 0.1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: python: 2,319; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 192 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import sys


def main():
    a = int(sys.stdin.read())
    b = 20
    extracted_method(a, b)
    c = a + b

def extracted_method(a, b):
    print(a + b)


a, b = 30, 40
extracted_method(a, b)