eric6/UI/UserInterface.py

changeset 7785
9978016560ec
parent 7781
607a6098cb44
child 7802
eefe954f01e8
child 7804
1cbc27e34ec6
equal deleted inserted replaced
7784:3257703e10c5 7785:9978016560ec
3690 address = FeatureAddress 3690 address = FeatureAddress
3691 else: 3691 else:
3692 address = BugAddress 3692 address = BugAddress
3693 subject = "[eric6] " 3693 subject = "[eric6] "
3694 if attachFile is not None: 3694 if attachFile is not None:
3695 f = open(attachFile, "r", encoding="utf-8") 3695 with open(attachFile, "r", encoding="utf-8") as f:
3696 body = f.read() 3696 body = f.read()
3697 f.close()
3698 if deleteAttachFile: 3697 if deleteAttachFile:
3699 os.remove(attachFile) 3698 os.remove(attachFile)
3700 else: 3699 else:
3701 body = "\r\n----\r\n{0}\r\n----\r\n{1}\r\n----\r\n{2}".format( 3700 body = "\r\n----\r\n{0}\r\n----\r\n{1}\r\n----\r\n{2}".format(
3702 Utilities.generateVersionInfo("\r\n"), 3701 Utilities.generateVersionInfo("\r\n"),

eric ide

mercurial