summaryrefslogtreecommitdiff
path: root/trunk/src/update_pyparsing_timestamp.py
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/update_pyparsing_timestamp.py')
-rw-r--r--trunk/src/update_pyparsing_timestamp.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/trunk/src/update_pyparsing_timestamp.py b/trunk/src/update_pyparsing_timestamp.py
deleted file mode 100644
index 80ea3d4..0000000
--- a/trunk/src/update_pyparsing_timestamp.py
+++ /dev/null
@@ -1,17 +0,0 @@
-from pyparsing import quotedString
-from datetime import datetime
-
-nw = datetime.utcnow()
-nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC")
-print (nowstring)
-
-quoted_time = quotedString()
-quoted_time.setParseAction(lambda: nowstring)
-
-version_time = "__versionTime__ = " + quoted_time
-with open('pyparsing.py') as oldpp:
- new_code = version_time.transformString(oldpp.read())
-
-with open('pyparsing.py','w') as newpp:
- newpp.write(new_code)
-