1. Dan Connolly
  2. quacken

Commits

Dan Connolly  committed d7c8ab4

use _with_caps rather than gratuitously dynamic _initial_caps()

  • Participants
  • Parent commits 37c6c51
  • Branches well-typed

Comments (0)

Files changed (1)

File budget_sync.py

View file
 
 
 if __name__ == '__main__':
-    def _initial_caps(host='localhost'):
+    def _with_caps(host='localhost'):
         from sys import argv
         import gnomekeyring as gk
         from sqlalchemy import create_engine
                     username=creds['user'],
                     password=creds['password']))
 
-        return dict(argv=argv,
+        return main(argv=argv,
                     open_arg=open_arg,
                     engine_arg=engine_arg)
 
-    main(**_initial_caps())
+    _with_caps()