diff options
| author | Noel Power <noel.power@suse.com> | 2018-02-23 13:09:24 +0000 |
|---|---|---|
| committer | Douglas Bagnall <dbagnall@samba.org> | 2018-02-28 23:01:40 +0100 |
| commit | efad273122348469d0fd1e0269dd74aa25857504 (patch) | |
| tree | 96ba92e61f6452fca5ca1d406d63d227211a3673 /python/samba/tests/source.py | |
| parent | 15c72e0dd80d37fa5f0af1e52f5f95b0712b6c51 (diff) | |
| download | samba-efad273122348469d0fd1e0269dd74aa25857504.tar.gz samba-efad273122348469d0fd1e0269dd74aa25857504.tar.bz2 samba-efad273122348469d0fd1e0269dd74aa25857504.zip | |
python tests: convert oct 'O1234' format to python3 compatible '0o1234'
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python/samba/tests/source.py')
| -rw-r--r-- | python/samba/tests/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/tests/source.py b/python/samba/tests/source.py index 2a8e675f515..3b18a91b5a2 100644 --- a/python/samba/tests/source.py +++ b/python/samba/tests/source.py @@ -199,7 +199,7 @@ class TestSource(TestCase): for fname, line_no, line in self._iter_source_files_lines(): if line_no >= 1: continue - executable = (os.stat(fname).st_mode & 0111) + executable = (os.stat(fname).st_mode & 0o111) has_shebang = line.startswith("#!") if has_shebang and not executable: self._push_file(files_with_shebang, fname, line_no) |
