summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2012-02-26 17:35:34 +1300
committerStuart Rackham <srackham@methods.co.nz>2012-02-26 17:35:34 +1300
commitfa9a78c7d8d4cb0bc66a23fcec85a48701f90187 (patch)
tree2eb77927ff4e295a10e4bf936fbc2df40aab31fd
parent7d09e89a5b7546a04f32aa85741d8d7ca1c36143 (diff)
downloadasciidoc-fa9a78c7d8d4cb0bc66a23fcec85a48701f90187.tar.gz
Fixed Python 2.4 backward incompatibility (see
http://code.google.com/p/asciidoc/issues/detail?id=9)
-rwxr-xr-xa2x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/a2x.py b/a2x.py
index 17b9f15..83cfbec 100755
--- a/a2x.py
+++ b/a2x.py
@@ -440,7 +440,7 @@ class A2X(AttrDict):
for r in self.resources:
r = os.path.expanduser(r)
r = os.path.expandvars(r)
- if r.endswith(('/','\\')):
+ if r.endswith('/') or r.endswith('\\'):
if os.path.isdir(r):
self.resource_dirs.append(r)
else: