#NEWLINE# def ping( version ) : #NEWLINE# #INDENT# '\n        Send a simple ping to my server\n            to see how many people are using this script\n    ' #NEWLINE# try : #NEWLINE# #INDENT# import uuid #NEWLINE# import requests #NEWLINE# import json #NEWLINE# import os #NEWLINE# import time #NEWLINE# data = { #NEWLINE# #INDENT# 'uuid' : uuid . getnode ( ) , #NEWLINE# 'version' : version , #NEWLINE# #UNINDENT# } #NEWLINE# datefile = ( '/tmp/%s' % time . strftime ( '%Y%m%d' ) ) #NEWLINE# if ( not os . path . isfile ( version ) ) : #NEWLINE# #INDENT# with open ( datefile , 'w' ) : #NEWLINE# #INDENT# os . utime ( datefile , None ) #NEWLINE# #UNINDENT# requests . post ( 'http://api.jcode.me/autorippr/stats' , data = json . dumps ( data ) , timeout = 5 ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass