| .. | .. |
|---|
| 1 | | -#!/usr/bin/python |
|---|
| 2 | | -# |
|---|
| 3 | 1 | # Cpu task migration overview toy |
|---|
| 4 | 2 | # |
|---|
| 5 | 3 | # Copyright (C) 2010 Frederic Weisbecker <fweisbec@gmail.com> |
|---|
| .. | .. |
|---|
| 16 | 14 | |
|---|
| 17 | 15 | from collections import defaultdict |
|---|
| 18 | 16 | try: |
|---|
| 19 | | - from UserList import UserList |
|---|
| 17 | + from UserList import UserList |
|---|
| 20 | 18 | except ImportError: |
|---|
| 21 | | - # Python 3: UserList moved to the collections package |
|---|
| 22 | | - from collections import UserList |
|---|
| 19 | + # Python 3: UserList moved to the collections package |
|---|
| 20 | + from collections import UserList |
|---|
| 23 | 21 | |
|---|
| 24 | 22 | sys.path.append(os.environ['PERF_EXEC_PATH'] + \ |
|---|
| 25 | 23 | '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') |
|---|