Skip to content

Commit 1a13f32

Browse files
committed
Fixed config file string interpolation
1 parent 9a1cf70 commit 1a13f32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
1.0.2:
22
- Added commodity name conversion before uploading to EDDN
3+
- Changed ConfigParser to RawConfigParser to avoid interpolation
34

45
1.0.1:
56
- Better ship name retrieval

edce/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import getpass
88
import edce.error
99

10-
Config = configparser.ConfigParser()
10+
Config = configparser.RawConfigParser()
1111
Config.read('edce.ini')
1212

1313
def ConfigSectionMap(section):
@@ -41,7 +41,7 @@ def performSetup():
4141
password = getpass.getpass('Frontier Store Password: ').strip()
4242
enableEDDN = input("Send market data to EDDN. No private information is sent. [Y/n]: ").strip().lower()
4343

44-
Config = configparser.ConfigParser()
44+
Config = configparser.RawConfigParser()
4545

4646
Config.add_section('login')
4747
Config.set('login','username',username)

0 commit comments

Comments
 (0)