Skip to content

Commit 79145d1

Browse files
committed
clean up
1 parent 079d476 commit 79145d1

File tree

9 files changed

+5
-141
lines changed

9 files changed

+5
-141
lines changed

ontospy/extras/dbpedia.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ def parse_options():
9898

9999
if len(args) > 0: #dont take no args
100100
parser.print_help()
101-
raise SystemExit, 1
101+
raise SystemExit(1)
102102
if not (opts.query or opts.describe or opts.alltriples or opts.ontology):
103103
parser.print_help()
104-
raise SystemExit, 1
104+
raise SystemExit(1)
105105
return opts, args
106106

107107

@@ -161,7 +161,7 @@ def main():
161161
try:
162162
main()
163163
sys.exit(0)
164-
except KeyboardInterrupt, e: # Ctrl-C
164+
except KeyboardInterrupt as e: # Ctrl-C
165165
raise e
166166

167167

ontospy/extras/hacks/click_example.py

Lines changed: 0 additions & 90 deletions
This file was deleted.

ontospy/extras/hacks/pptoolkit.py

Lines changed: 0 additions & 46 deletions
This file was deleted.
-40 KB
Binary file not shown.
-109 KB
Binary file not shown.
-72.2 KB
Binary file not shown.
-56.7 KB
Binary file not shown.
-53.4 KB
Binary file not shown.

ontospy/extras/sparqlpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def parse_options():
268268

269269
if len(args) < 1:
270270
parser.print_help()
271-
raise SystemExit, 1
271+
raise SystemExit(1)
272272

273273
return opts, args
274274

@@ -332,5 +332,5 @@ def main():
332332
try:
333333
main()
334334
sys.exit(0)
335-
except KeyboardInterrupt, e: # Ctrl-C
335+
except KeyboardInterrupt as e: # Ctrl-C
336336
raise e

0 commit comments

Comments
 (0)