You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2019/09/16 22:36:53 UTC

svn commit: r1867030 - /comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py

Author: sebb
Date: Mon Sep 16 22:36:53 2019
New Revision: 1867030

URL: http://svn.apache.org/viewvc?rev=1867030&view=rev
Log:
docstring must be at start of script

Modified:
    comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py

Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py?rev=1867030&r1=1867029&r2=1867030&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py (original)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/countaccounts.py Mon Sep 16 22:36:53 2019
@@ -1,9 +1,3 @@
-import sys
-# The output from json.dumps() has a trailing space in Python2, it is absent in Python3
-# So ensure we always use the same python version as the crontab
-if sys.hexversion < 0x030000F0:
-    raise RuntimeError("This script requires Python3")
-
 """
 Extracts data showing the number of accounts created each month.
 
@@ -42,6 +36,12 @@ on the last day of the month
 
 """
 
+import sys
+# The output from json.dumps() has a trailing space in Python2, it is absent in Python3
+# So ensure we always use the same python version as the crontab
+if sys.hexversion < 0x030000F0:
+    raise RuntimeError("This script requires Python3")
+
 import json
 from datetime import datetime, timedelta
 from urlutils import UrlCache