]> granicus.if.org Git - python/commitdiff
revert syntax change
authorBenjamin Peterson <benjamin@python.org>
Tue, 13 May 2008 12:56:25 +0000 (12:56 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 13 May 2008 12:56:25 +0000 (12:56 +0000)
Doc/tools/sphinxext/patchlevel.py

index 821e3be307980b9ebe1f37aa2efae90b791fb9ed..cb9e35c2267b6a66d28f7cc4340a288f0d0b1c35 100644 (file)
@@ -63,10 +63,9 @@ def get_version_info():
         return get_header_version_info('.')
     except (IOError, OSError):
         version, release = get_sys_version_info()
-        print('Can\'t get version info from Include/patchlevel.h, '
-              'using version of this interpreter (%s).' % release,
-              file=sys.stderr)
+        print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
+              'using version of this interpreter (%s).' % release
         return version, release
 
 if __name__ == '__main__':
-    print(get_header_version_info('.')[1])
+    print get_header_version_info('.')[1]