Skip to content

Commit

Permalink
Bump bitvector version, print out anon instead of nothing for anonymo…
Browse files Browse the repository at this point in the history
…us names
  • Loading branch information
leonardt committed Aug 23, 2018
1 parent c2e6f2f commit b779191
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion magma/ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ class AnonRef(Ref):
def __init__(self, name=""):
self.name = name

def __str__(self):
return str(self.name) if self.name else f"AnonymousValue({id(self)})"

def qualifiedname(self, sep='.'):
return str(self.name) if self.name else ""
return str(self.name) if self.name else f"AnonymousValue({id(self)})"

def anon(self):
return False if self.name else True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"numpy",
"graphviz",
"coreir==0.24a0",
"bit_vector==0.30a0"
"bit_vector==0.32a0"
],
python_requires='>=3.6'
)

0 comments on commit b779191

Please sign in to comment.