From 655835e8de2ffdc52f352c8c05005b0eb41e0aa5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 21 Sep 2014 23:18:33 +0800 Subject: [PATCH] language/core: cleanup --- artiq/language/core.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/artiq/language/core.py b/artiq/language/core.py index 506f3eb0b..75da83f16 100644 --- a/artiq/language/core.py +++ b/artiq/language/core.py @@ -1,11 +1,8 @@ """Core ARTIQ extensions to the Python language.""" from collections import namedtuple -from fractions import Fraction from copy import copy -from artiq.language import units - class int64(int): """64-bit integers for static compilation. @@ -107,8 +104,8 @@ class AutoContext: At the top-level, it is possible to have a MVS that issues requests to a database and hardware management system. - :param parameters: A string containing the parameters that the object must have. - It must be a space-separated list of valid Python identifiers. + :param parameters: A string containing the parameters that the object must + have. It must be a space-separated list of valid Python identifiers. Default: empty. :param implicit_core: Automatically adds ``core`` to the parameter list. Default: True. @@ -333,6 +330,7 @@ def syscall(*args): _encoded_exceptions = dict() + def EncodedException(eid): """Represents exceptions on the core device, which are identified by a single number.