diff options
author | Ian Johnson <ian.johnson@appliedlanguage.com> | 2014-05-14 13:26:37 +0400 |
---|---|---|
committer | Ian Johnson <ian.johnson@appliedlanguage.com> | 2014-05-14 13:26:37 +0400 |
commit | 8c272e03c25bd06dea91596e4a265cd86ab4d563 (patch) | |
tree | 444f7312c10186f2b1089333fc82df60e184d656 | |
parent | 629845e34b51f14b6687cf544ed24a25e5f0de3c (diff) |
Tidy up the non-identifier Python literal generation.do-notation
-rw-r--r-- | src/pclc/visitors/pcl_executor_visitor.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/pclc/visitors/pcl_executor_visitor.py b/src/pclc/visitors/pcl_executor_visitor.py index 1cc98bc..649198d 100644 --- a/src/pclc/visitors/pcl_executor_visitor.py +++ b/src/pclc/visitors/pcl_executor_visitor.py @@ -148,9 +148,7 @@ class PCLExecutorVisitor(ExecutorVisitor): (cm.to, \ "config['%s']" % cm.from_ \ if isinstance(cm.from_, Identifier) \ - else cm.from_.value.__repr__() \ - if isinstance(cm.from_.value, str) \ - else m.literal) \ + else cm.from_.value.__repr__() ) for cm in decl.configuration_mappings]))) \ for decl in self._module.resolution_symbols['components']] # The initialise function @@ -171,9 +169,7 @@ class PCLExecutorVisitor(ExecutorVisitor): (cm.to, \ "s['%s']" % cm.from_ \ if isinstance(cm.from_, Identifier) \ - else cm.from_.value.__repr__() \ - if isinstance(cm.from_.value, str) \ - else m.literal) \ + else cm.from_.value.__repr__()) for cm in decl.configuration_mappings]))} if decl.configuration_mappings else "" for decl in self._module.resolution_symbols['components']] # Do we generate instrumented code? |