Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename hub_script.main() to hub_script.hub_script() (otherwise covera…

…ge excludes the main function)
  • Loading branch information...
commit 8c8f66498e6c9b82d800be28859f1fe00c291bf3 1 parent 7f89988
@astrofrog astrofrog authored
View
2  astropy/vo/samp/hub_script.py
@@ -18,7 +18,7 @@
__all__ = ['main']
-def main(timeout=0):
+def hub_script(timeout=0):
"""
This main function is executed by the `samp_hub` command line tool.
"""
View
2  astropy/vo/samp/tests/test_hub_script.py
@@ -1,6 +1,6 @@
import sys
-from ..hub_script import main as hub_script
+from ..hub_script import hub_script
from ..utils import ALLOW_INTERNET
ALLOW_INTERNET.set(False)
View
4 scripts/samp_hub
@@ -1,4 +1,4 @@
#!/usr/bin/env python
-from astropy.vo.samp.hub_script import main
-main()
+from astropy.vo.samp.hub_script import hub_script
+hub_script()
Please sign in to comment.
Something went wrong with that request. Please try again.