Skip to content

Commit

Permalink
gen_commands: write to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
ei-grad committed Nov 4, 2012
1 parent 3a7f676 commit 0e6253e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gen_commands.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python


import json
import os
import sys

from textwrap import TextWrapper

Expand Down Expand Up @@ -212,6 +212,4 @@ def compile_commands():


if __name__ == "__main__":
with open(os.path.join(os.path.dirname(__file__), 'toredis/commands.py'), 'w') as f:
f.write(get_class_source('RedisCommandsMixin'))
print 'Generated commands.py'
sys.stdout.write(get_class_source('RedisCommandsMixin'))

0 comments on commit 0e6253e

Please sign in to comment.