Skip to content

Commit

Permalink
86 six.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfine committed Jun 19, 2015
1 parent 94a889d commit f7acbae
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion generator/sbpg/targets/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def construct_format(f, type_map=CONSTRUCT_CODE):
elif f.type_id == 'string' and f.options.get('size', None):
return "String('%s', %d)" % (f.identifier, f.options['size'].value)
elif f.type_id == 'string':
return "CString('%s', six.b('\\n'))" % (f.identifier)
return "CString('%s')" % (f.identifier)
elif f.type_id == 'array' and f.options.get('size', None):
fill = f.options['fill'].value
f_ = copy.copy(f)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ from construct import *
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

((*- for i in include *))
from (((module_path))).(((i))) import *
Expand Down
1 change: 0 additions & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
six
boto==2.38.0
construct==2.5.2
cov-core==1.15.0
Expand Down
1 change: 0 additions & 1 deletion python/sbp/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/acquisition.yaml with generate.py.
# Please do not hand edit!
Expand Down
3 changes: 1 addition & 2 deletions python/sbp/bootload.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/bootload.yaml with generate.py.
# Please do not hand edit!
Expand Down Expand Up @@ -89,7 +88,7 @@ class MsgBootloaderHandshakeResponse(SBP):
"""
_parser = Struct("MsgBootloaderHandshakeResponse",
ULInt32('flags'),
CString('version', six.b('\n')),)
CString('version'),)

def __init__(self, sbp=None, **kwargs):
if sbp:
Expand Down
1 change: 0 additions & 1 deletion python/sbp/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/deprecated.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/ext_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/ext_events.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/file_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/file_io.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/flash.yaml with generate.py.
# Please do not hand edit!
Expand Down
3 changes: 1 addition & 2 deletions python/sbp/logging.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/logging.yaml with generate.py.
# Please do not hand edit!
Expand Down Expand Up @@ -51,7 +50,7 @@ class MsgPrint(SBP):
"""
_parser = Struct("MsgPrint",
CString('text', six.b('\n')),)
CString('text'),)

def __init__(self, sbp=None, **kwargs):
if sbp:
Expand Down
1 change: 0 additions & 1 deletion python/sbp/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/navigation.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/observation.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/piksi.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/piksi.yaml with generate.py.
# Please do not hand edit!
Expand Down
3 changes: 1 addition & 2 deletions python/sbp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/settings.yaml with generate.py.
# Please do not hand edit!
Expand Down Expand Up @@ -57,7 +56,7 @@ class MsgSettings(SBP):
"""
_parser = Struct("MsgSettings",
CString('setting', six.b('\n')),)
CString('setting'),)

def __init__(self, sbp=None, **kwargs):
if sbp:
Expand Down
1 change: 0 additions & 1 deletion python/sbp/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/system.yaml with generate.py.
# Please do not hand edit!
Expand Down
1 change: 0 additions & 1 deletion python/sbp/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import json
from sbp.msg import SBP
from sbp.utils import fmt_repr, exclude_fields, walk_json_dict, containerize
import six

# Automatically generated from piksi/yaml/swiftnav/sbp/tracking.yaml with generate.py.
# Please do not hand edit!
Expand Down

0 comments on commit f7acbae

Please sign in to comment.