diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-04-03 19:10:31 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-04-03 19:10:31 (GMT) |
commit | 56159f75088d1ab79293ff6c23d5f5f8e1b8209d (patch) | |
tree | 08e691b574147cc214c9c3b9e453f0a759184525 /src/engine/SCons/Node | |
parent | 01082e83bbd3676cd126bcd9a0fd1a0a77366978 (diff) | |
download | SCons-56159f75088d1ab79293ff6c23d5f5f8e1b8209d.zip SCons-56159f75088d1ab79293ff6c23d5f5f8e1b8209d.tar.gz SCons-56159f75088d1ab79293ff6c23d5f5f8e1b8209d.tar.bz2 |
py2/3 define __lt__ for nodes, so sort will work on py3
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r-- | src/engine/SCons/Node/FS.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py index f455edb..33e4a2d 100644 --- a/src/engine/SCons/Node/FS.py +++ b/src/engine/SCons/Node/FS.py @@ -690,6 +690,10 @@ class Base(SCons.Node.Node): return self._save_str() return self._get_str() + def __lt__(self, other): + """ less than operator used by sorting on py3""" + return str(self) < str(other) + @SCons.Memoize.CountMethodCall def _save_str(self): try: |