Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e071277 commit 9a3b014Copy full SHA for 9a3b014
1 file changed
Lib/idlelib/PyShell.py
@@ -1365,7 +1365,10 @@ def main():
1365
if not dir in sys.path:
1366
sys.path.insert(0, dir)
1367
else:
1368
- dir = os.getcwd()
+ 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
1373
1374
# check the IDLE settings configuration (but command line overrides)
0 commit comments