OLD | NEW |
1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 """Utility functions for calculating statistics. | 9 """Utility functions for calculating statistics. |
10 """ | 10 """ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 for point in data_points: | 78 for point in data_points: |
79 ssrc_is_incoming[point.ssrc] = point.incoming | 79 ssrc_is_incoming[point.ssrc] = point.incoming |
80 return ssrc_is_incoming | 80 return ssrc_is_incoming |
81 | 81 |
82 | 82 |
83 # Python 2/3-compatible input function | 83 # Python 2/3-compatible input function |
84 if sys.version_info[0] <= 2: | 84 if sys.version_info[0] <= 2: |
85 get_input = raw_input # pylint: disable=invalid-name | 85 get_input = raw_input # pylint: disable=invalid-name |
86 else: | 86 else: |
87 get_input = input # pylint: disable=invalid-name | 87 get_input = input # pylint: disable=invalid-name |
OLD | NEW |