Merge pull request #1 from wxl/master

correct login var, production not staging, strip whitespace
This commit is contained in:
Walter Lapchynski 2015-12-11 14:39:51 -08:00
commit 66e3d3c135

View File

@ -4,13 +4,13 @@ from launchpadlib.launchpad import Launchpad
def no_credential():
print("Can't proceed without Launchpad credentials.")
sys.exit()
launchpad = Launchpad.login_with('Mass package bug subscription adder', 'staging', credential_save_failed=no_credential)
lp = Launchpad.login_with('Mass package bug subscription adder', 'production', credential_save_failed=no_credential)
teamtowrite = (raw_input('What person/team would you like to use for this(ID not full name)? '))
filepath = (raw_input('Please specify the path of the input file: '))
with open(filepath, "r") as ins:
filearray = []
for line in ins:
filearray.append(line)
filearray.append(line.strip())
for i in range(len(filearray)):
print("Assigning:")
print(filearray[i])