projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e071277
)
os.getcwd() is returning str8; sys.path items are str.
author
Kurt B. Kaiser
<kbk@shore.net>
Thu, 23 Aug 2007 06:17:40 +0000
(06:17 +0000)
committer
Kurt B. Kaiser
<kbk@shore.net>
Thu, 23 Aug 2007 06:17:40 +0000
(06:17 +0000)
Lib/idlelib/PyShell.py
patch
|
blob
|
history
diff --git
a/Lib/idlelib/PyShell.py
b/Lib/idlelib/PyShell.py
index a9b8f720bec9103eedb1f9fc5c909cf82c873135..21cdbc57d76e0f8a2028ec38fce2a1e7bb625d20 100644
(file)
--- a/
Lib/idlelib/PyShell.py
+++ b/
Lib/idlelib/PyShell.py
@@
-1365,7
+1365,10
@@
def main():
if not dir in sys.path:
sys.path.insert(0, dir)
else:
- dir = os.getcwd()
+ dir = str(os.getcwd()) ### os.getcwd() returning str8 but sys.path
+ ### items are type 'str'. Remove the cast
+ ### when fixed and assertion fails
+ assert isinstance(os.getcwd(), str8) ###
if not dir in sys.path:
sys.path.insert(0, dir)
# check the IDLE settings configuration (but command line overrides)