Commits

jaraco  committed 6c8131c

Removed use of .format (working toward python 2.5 compatibility)

  • Participants
  • Parent commits 1cab71e

Comments (0)

Files changed (2)

File eodsfetch.bat.template

 :: To see all of the options available, run eodsfetch --help
 
 :: >eodsfetch --help
-{0}
+{usage}
 
 :: Sometimes, the library will be able to autodetect if you have a proxy configured.
 :: Other times, you have to specify a proxy explicitly.

File setup-eodsfetch.py

 	usage = StringIO()
 	parser.print_help(usage)
 	usage.seek(0)
-	content = ''.join(escape_for_batch(usage))
-	content = template.format(content)
+	usage = ''.join(escape_for_batch(usage))
+	content = template.replace('{usage}', usage)
 	open('eodsfetch.bat', 'w').write(content)
 	return ['eodsfetch.bat']