From 92830f87d8b36d09ae1f065f703406084fd2c21e Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Wed, 1 Apr 2015 19:43:54 -0700 Subject: [PATCH] Update for Python 3 --- example/ATLYS/fpga/tb/test_fpga_core.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/ATLYS/fpga/tb/test_fpga_core.py b/example/ATLYS/fpga/tb/test_fpga_core.py index 18d082d6b..da172489a 100755 --- a/example/ATLYS/fpga/tb/test_fpga_core.py +++ b/example/ATLYS/fpga/tb/test_fpga_core.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python """ Copyright (c) 2015 Alex Forencich @@ -25,7 +25,11 @@ THE SOFTWARE. from myhdl import * import os -from Queue import Queue + +try: + from queue import Queue +except ImportError: + from Queue import Queue import eth_ep import arp_ep