Skip to content

Commit

Permalink
Fix 2.6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Bastida committed Dec 19, 2013
1 parent 09c9708 commit 7562ad9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions glue/formats/jsonformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ def populate_argument_parser(cls, parser):
def get_context(self, *args, **kwargs):
context = super(JSONFormat, self).get_context(*args, **kwargs)

frames = {i['filename']: {'filename': i['filename'],
'frame': {'x': i['x'],
'y': i['y'],
'w': i['width'],
'h': i['height']},
'rotated': False,
'trimmed': False,
'spriteSourceSize': {'x': i['x'],
'y': i['y'],
'w': i['width'],
'h': i['height']},
'sourceSize': {'w': i['original_width'],
'h': i['original_height']}} for i in context['images']}
frames = dict([[i['filename'], {'filename': i['filename'],
'frame': {'x': i['x'],
'y': i['y'],
'w': i['width'],
'h': i['height']},
'rotated': False,
'trimmed': False,
'spriteSourceSize': {'x': i['x'],
'y': i['y'],
'w': i['width'],
'h': i['height']},
'sourceSize': {'w': i['original_width'],
'h': i['original_height']}}] for i in context['images']])

data = dict(frames=None, meta={'version': context['version'],
'hash': context['hash'],
Expand Down

0 comments on commit 7562ad9

Please sign in to comment.