diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2012-02-26 17:35:34 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2012-02-26 17:35:34 +1300 |
commit | fa9a78c7d8d4cb0bc66a23fcec85a48701f90187 (patch) | |
tree | 2eb77927ff4e295a10e4bf936fbc2df40aab31fd | |
parent | 7d09e89a5b7546a04f32aa85741d8d7ca1c36143 (diff) | |
download | asciidoc-fa9a78c7d8d4cb0bc66a23fcec85a48701f90187.tar.gz |
Fixed Python 2.4 backward incompatibility (see
http://code.google.com/p/asciidoc/issues/detail?id=9)
-rwxr-xr-x | a2x.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |