(cd ..; tar -czf freshmeat-submit/freshmeat-submit-$(VERS).tar.gz `cat freshmeat-submit/MANIFEST`)
(cd ..; rm freshmeat-submit-$(VERS))
+pychecker:
+ @echo "Expect: Object (data) has no attribute (update)"
+ @ln -f freshmeat-submit freshmeat-submit.py
+ @-pychecker --only --limit 50 freshmeat-submit.py
+ @rm -f freshmeat-submit.py
+
clean:
- rm -f *.html freshmeat-submit.1 MANIFEST ChangeLog SHIPPER.* *~
+ rm -f *.pyc *.html freshmeat-submit.1 MANIFEST ChangeLog SHIPPER.* *~
dist: freshmeat-submit-$(VERS).tar.gz
#
# freshmeat-submit -- script transactions with the Freshmeat server
-import sys, re, urllib2, json, netrc, email.Parser, optparse, commands
+import sys, re, urllib2, json, netrc, email.Parser, optparse
class Update:
"Encapsulate dictionaries describing a project metadata update."
else:
return "GET"
-class FreshmeatSessionException:
+class FreshmeatSessionException(Exception):
def __init__(self, msg):
self.msg = msg