Skip to content

Commit 85639a9

Browse files
author
Reean Khan
committed
more flake8
1 parent d32a630 commit 85639a9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

fork_and_clone/Fnc.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ def fork():
77

88
print("To quit at any point click ctrl-c")
99
accOrOrg = input(
10-
"Fork to your profile or an organization" \
10+
"Fork to your profile or an organization"
1111
"(type org for organization, acc for profile): ")
12-
1312
while (accOrOrg != "acc" and accOrOrg != "org"):
1413
accOrOrg = input("invalid answer: acc or org: ")
15-
1614
username = input("Your github username: ")
1715
password = input("Your github password: ")
18-
1916
try:
2017
g = Github(username, password)
2118
user = g.get_user()
@@ -26,7 +23,6 @@ def fork():
2623
org = input("name of your organization: ")
2724
org = g.get_organization(org)
2825
org.create_fork(g.get_repo(repo))
29-
3026
clone(username, repo)
3127
except Exception as e:
3228
print("ERROR: " + str(e))
@@ -39,7 +35,6 @@ def clone(repo):
3935
location = input(
4036
"Path for cloning repo into" /
4137
"(default is current directory): ")
42-
4338
try:
4439
if len(location.strip()) != 0:
4540
arr = repo.split("/")

0 commit comments

Comments
 (0)