Commit e38729f7 authored by Matthieu Barba's avatar Matthieu Barba Committed by ens-bwalts
Browse files

Allow a single hash in a string without substitution (in python wrapper)

parent 5dee1566
......@@ -144,6 +144,11 @@ class ParamContainer(object):
The result is a string (like structure)
self.debug_print("subst_all_hashpairs", structure)
# Allow a single literal hash?
if structure.count("#") == 1:
return structure
result = []
while True:
(head,_,tmp) = structure.partition('#')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment