-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.py
More file actions
26 lines (22 loc) · 747 Bytes
/
test.py
File metadata and controls
26 lines (22 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from eresolver import resolver
print "====================> Eresolver <=========================="
print "It helps you to find the suggestions to resolve your errors"
print "==========================================================="
print "Testing..."
print "try to use statement which gives error:"
print "e.g. print 1/0\n"
# def replace():
# print "this is my function\n"
try:
#xyz(test)
print 1/0
except Exception,e:
print "Error: "+str(e)
print "-----------------------------------------------------"
print "Possible Solutions:-"
#print resolver(str(e))
answers = resolver(str(e))
for x in answers:
print "-----------------------------------------------------"
print x
# print json.dumps(response, indent=2, sort_keys=True)