Skip to content

Commit d082b6e

Browse files
committed
os.getcwd() now returns a normal string (ie, unicode)
1 parent 19b4a27 commit d082b6e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,11 +1365,8 @@ def main():
13651365
if not dir in sys.path:
13661366
sys.path.insert(0, dir)
13671367
else:
1368-
dir = str(os.getcwd()) ### os.getcwd() returning str8 but sys.path
1369-
### items are type 'str'. Remove the cast
1370-
### when fixed and assertion fails
1371-
assert isinstance(os.getcwd(), str8) ###
1372-
if not dir in sys.path:
1368+
dir = os.getcwd()
1369+
if dir not in sys.path:
13731370
sys.path.insert(0, dir)
13741371
# check the IDLE settings configuration (but command line overrides)
13751372
edit_start = idleConf.GetOption('main', 'General',

0 commit comments

Comments
 (0)