10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-23 05:32:13 +02:00

Now ezfio_interface.py work in Python 2.6

This commit is contained in:
Thomas Applencourt 2015-03-26 19:26:48 +01:00
parent b72f6a813c
commit 7e1c45bedd

View File

@ -342,10 +342,9 @@ def create_ezfio_config(dict_ezfio_cfg, opt, module_lower):
def create_format_string(size): def create_format_string(size):
""" """
Take a size number and Take a size number and
return the string format for being right align with this ofset return the string format for being right align with this offset
""" """
return "{{0:<{0}}}".format(size).format
return "{{:<{0}}}".format(size).format
# ~#~#~#~#~#~#~#~#~#~#~# # # ~#~#~#~#~#~#~#~#~#~#~# #
# F o r m a t _ i n f o # # F o r m a t _ i n f o #