Skip to content

Commit

Permalink
Merge pull request iovisor#1068 from goldshtn/syscount-python3
Browse files Browse the repository at this point in the history
syscount: Use zip_longest for Python 3 compatibility
  • Loading branch information
drzaeus77 committed Mar 26, 2017
2 parents 30744c9 + 6545390 commit 277ebbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/syscount.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
# 15-Feb-2017 Sasha Goldshtein Created this.

from bcc import BPF
from itertools import izip_longest
from time import sleep, strftime
import argparse
import itertools
import subprocess
import sys

if sys.version_info.major < 3:
izip_longest = itertools.izip_longest
else:
izip_longest = itertools.zip_longest

#
# Syscall table for Linux x86_64, not very recent.
# Automatically generated from strace/linux/x86_64/syscallent.h using the
Expand Down

0 comments on commit 277ebbc

Please sign in to comment.