]> git.lyx.org Git - lyx.git/blobdiff - lib/scripts/fig_copy.py
whitespace.
[lyx.git] / lib / scripts / fig_copy.py
index 4eb58e05e634dfea2da89cd3ffcfeb233e68c4e0..d5e0421668558dff0f7cd9949f412f268ac6981b 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
 # file fig_copy.py
@@ -21,7 +20,7 @@
 import os, sys
 
 if len(sys.argv) != 3:
-    print >> sys.stderr, "Usage: fig_copy.sh <from file> <to file>"
+    print >> sys.stderr, "Usage: fig_copy.py <from file> <to file>"
     sys.exit(1)
 
 if not os.path.isfile(sys.argv[1]):
@@ -59,7 +58,7 @@ output = open(sys.argv[2], 'w')
 os.chdir(from_dir)
 
 found = False
-for line in input.xreadlines():
+for line in input:
     if found and not emptyline.match(line) and not commentline.match(line):
         # The contents of the final line containing the file name
         # are ' X <file name>', where X = 0 or 1.