Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/speak/new_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'speak/new_main.py')
-rw-r--r--speak/new_main.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/speak/new_main.py b/speak/new_main.py
new file mode 100644
index 0000000..f46cac7
--- /dev/null
+++ b/speak/new_main.py
@@ -0,0 +1,15 @@
+#! /usr/bin/python
+
+# To change this template, choose Tools | Templates
+# and open the template in the editor.
+
+import urllib2
+
+def internet_on():
+ try:
+ response=urllib2.urlopen('http://74.125.113.99',timeout=1)
+ return True
+ except urllib2.URLError as err: pass
+ return False
+
+print internet_on() \ No newline at end of file