[Python-3000-checkins] r55798 - python/branches/p3yk/Tools/versioncheck/pyversioncheck.py
neal.norwitz
python-3000-checkins at python.org
Thu Jun 7 09:12:39 CEST 2007
Author: neal.norwitz
Date: Thu Jun 7 09:12:36 2007
New Revision: 55798
Modified:
python/branches/p3yk/Tools/versioncheck/pyversioncheck.py
Log:
Remove a use of types, verify commit hook works
Modified: python/branches/p3yk/Tools/versioncheck/pyversioncheck.py
==============================================================================
--- python/branches/p3yk/Tools/versioncheck/pyversioncheck.py (original)
+++ python/branches/p3yk/Tools/versioncheck/pyversioncheck.py Thu Jun 7 09:12:36 2007
@@ -1,5 +1,4 @@
"""pyversioncheck - Module to help with checking versions"""
-import types
import rfc822
import urllib
import sys
@@ -35,7 +34,7 @@
def checkonly(package, url, version, verbose=0):
if verbose >= VERBOSE_EACHFILE:
print '%s:'%package
- if type(url) == types.StringType:
+ if isinstance(url, str):
ok, newversion, fp = _check1version(package, url, version, verbose)
else:
for u in url:
More information about the Python-3000-checkins
mailing list