diff options
| author | bors <bors@rust-lang.org> | 2016-08-23 22:52:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-23 22:52:29 -0700 |
| commit | 308824acecf902f2b6a9c1538bde0324804ba68e (patch) | |
| tree | ddb58a48e645afd937c8c4aa920fb391f5d46a4b /src | |
| parent | a66fa96d1871ee71cc382a276a3e52f6f6e56e01 (diff) | |
| parent | 6aca068abae964f4f072528b95404d1409175e83 (diff) | |
Auto merge of #35748 - michaelwoerister:fix-rust-gdb-py-version-check, r=brson
Make version check in gdb_rust_pretty_printing.py more compatible. Some versions of Python don't support the `major` field on the object returned by `sys.version_info`. Fixes #35724 r? @brson
Diffstat (limited to 'src')
| -rwxr-xr-x | src/etc/gdb_rust_pretty_printing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/gdb_rust_pretty_printing.py b/src/etc/gdb_rust_pretty_printing.py index 554ab66bc56..cc5f621cb6b 100755 --- a/src/etc/gdb_rust_pretty_printing.py +++ b/src/etc/gdb_rust_pretty_printing.py @@ -16,7 +16,7 @@ import debugger_pretty_printers_common as rustpp # We want a version of `range` which doesn't allocate an intermediate list, # specifically it should use a lazy iterator. In Python 2 this was `xrange`, but # if we're running with Python 3 then we need to use `range` instead. -if sys.version_info.major >= 3: +if sys.version_info[0] >= 3: xrange = range #=============================================================================== |
