Skip to content

Commit 39de66f

Browse files
committed
Resolve pylint R0204 / redefined-variable-type
1 parent a159990 commit 39de66f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/helper_startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def loadConfig():
113113
if StoreConfigFilesInSameDirectoryAsProgramByDefault:
114114
# Just use the same directory as the program and forget about
115115
# the appdata folder
116-
state.appdata = ''
116+
state.appdata = u''
117117
logger.info(
118118
'Creating new config files in same directory as program.')
119119
else:

src/paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def lookupExeFolder():
2828
exeFolder = os.path.dirname(__file__) + os.path.sep
2929
else:
3030
exeFolder = ''
31-
return exeFolder
31+
return unicode(exeFolder)
3232

3333

3434
def lookupAppdataFolder():
@@ -69,7 +69,7 @@ def lookupAppdataFolder():
6969
# Old directory may not exist.
7070
pass
7171
dataFolder = dataFolder + os.path.sep
72-
return dataFolder
72+
return unicode(dataFolder)
7373

7474

7575
def codePath():

0 commit comments

Comments
 (0)