summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-01 19:35:13 (GMT)
commitbdfcfccbe591e15221f35add01132174c9b4e669 (patch)
tree7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/macpath.py
parent4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff)
downloadcpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz
cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2
New == syntax
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index 58cbb88..533b052 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -21,7 +21,7 @@ def isabs(s):
def join(s, t):
if (not s) or isabs(t): return t
- if t[:1] = ':': t = t[1:]
+ if t[:1] == ':': t = t[1:]
if ':' not in s:
s = ':' + s
if s[-1:] <> ':':
@@ -40,7 +40,7 @@ def split(s):
if ':' not in s: return '', s
colon = 0
for i in range(len(s)):
- if s[i] = ':': colon = i+1
+ if s[i] == ':': colon = i+1
return s[:colon], s[colon:]