Author: iwontbecreative
Date: Fri Mar 25 21:46:50 2011
New Revision: 49005

URL: http://svn.gna.org/viewcvs/wesnoth?rev=49005&view=rev
Log:
Remove W604 pep8 warning on files. Use repr(x) instead of deprecated 

Modified:
    trunk/data/tools/extractbindings
    trunk/data/tools/imgcheck
    trunk/data/tools/trackplacer
    trunk/data/tools/wesnoth/wmltools.py
    trunk/data/tools/wmlflip
    trunk/data/tools/wmllint
    trunk/data/tools/wmlxgettext
    trunk/utils/ai_test/ai_test2.py

Modified: trunk/data/tools/extractbindings
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/extractbindings?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/extractbindings (original)
+++ trunk/data/tools/extractbindings Fri Mar 25 21:46:50 2011
@@ -42,6 +42,6 @@
             try:
                 (key, value) = line.split("=")
             except ValueError:
-                print >>sys.stderr, "Malformed line: %s" % `line`
+                print >>sys.stderr, "Malformed line: %s" % repr(line)
                 sys.exit(1)
             entry[key] = value

Modified: trunk/data/tools/imgcheck
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/imgcheck?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/imgcheck (original)
+++ trunk/data/tools/imgcheck Fri Mar 25 21:46:50 2011
@@ -40,4 +40,4 @@
 for (filename, colors) in subtracted:
     print filename + ":"
     for (n, rgb) in colors:
-        print `rgb` + " * " + `n`
+        print repr(rgb) + " * " + repr(n)

Modified: trunk/data/tools/trackplacer
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Fri Mar 25 21:46:50 2011
@@ -351,10 +351,10 @@
             self.tracks[self.selected_id] = track[:found[-1]] + 
track[found[-1]+1:]
             self.modified += 1
     def __str__(self):
-        rep = self.mapfile + `self.track_order`+ "\n"
+        rep = self.mapfile + repr(self.track_order) + "\n"
         for name in self.track_order:
             track = self.tracks[name]
-            rep += name + ": " + `track` + ":\n"
+            rep += name + ": " + repr(track) + ":\n"
         return rep
 
 class ContextPopup:

Modified: trunk/data/tools/wesnoth/wmltools.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmltools.py?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Fri Mar 25 21:46:50 2011
@@ -289,7 +289,7 @@
     def dump_references(self):
         "Dump all known references to this definition."
         for (file, refs) in self.references.items():
-            print "    %s: %s" % (file, `map(lambda x: x[0], refs)`[1:-1])
+            print "    %s: %s" % (file, repr(map(lambda x: x[0], refs))[1:-1])
     def __cmp__(self, other):
         "Compare two documentation objects for place in the sort order."
         # Major sort by file, minor by line number.  This presumes that the
@@ -367,7 +367,7 @@
         latch_unit = in_base_unit = in_theme = False
         for (n, line) in enumerate(dfp):
             if self.warnlevel > 1:
-                print `line`[1:-1]
+                print repr(line)[1:-1]
             if line.strip().startswith("#textdomain"):
                 continue
             m = re.search("# *wmlscope: warnlevel ([0-9]*)", line)

Modified: trunk/data/tools/wmlflip
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlflip?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/wmlflip (original)
+++ trunk/data/tools/wmlflip Fri Mar 25 21:46:50 2011
@@ -314,8 +314,8 @@
 
             # Perform the actual transformation
             for (((xs, xe), (ys, ye)), (xn, yn)) in zip(pairs, target):
-                content = content[:ys] + `yn` + content[ye:]
-                content = content[:xs] + `xn` + content[xe:]
+                content = content[:ys] + repr(yn) + content[ye:]
+                content = content[:xs] + repr(xn) + content[xe:]
 
             fp = open(filename, "w")
             fp.write(content)

Modified: trunk/data/tools/wmllint
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmllint?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/wmllint (original)
+++ trunk/data/tools/wmllint Fri Mar 25 21:46:50 2011
@@ -1449,7 +1449,7 @@
                         if "no-icon" not in comment:
                             new_line = leader(syntactic) + 
"description=_"+description
                             if verbose:
-                                print '"%s", line %d: inserting %s' % 
(filename, i+1, `new_line`)
+                                print '"%s", line %d: inserting %s' % 
(filename, i+1, repr(new_line))
                             lines.insert(j+1, new_line)
                             j += 1
                     j += 1

Modified: trunk/data/tools/wmlxgettext
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlxgettext?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/data/tools/wmlxgettext (original)
+++ trunk/data/tools/wmlxgettext Fri Mar 25 21:46:50 2011
@@ -168,7 +168,7 @@
                 opener_stack.pop()
             elif inMacroContinuation(nav):
                 if verbose > 1:
-                    print "In macro continuation", `nav.text`
+                    print "In macro continuation", repr(nav.text)
                 nav.element = "argument"
                 get_translatables(nav, fn)
             elif isInlineMacro(nav):

Modified: trunk/utils/ai_test/ai_test2.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/ai_test/ai_test2.py?rev=49005&r1=49004&r2=49005&view=diff
==============================================================================
--- trunk/utils/ai_test/ai_test2.py (original)
+++ trunk/utils/ai_test/ai_test2.py Fri Mar 25 21:46:50 2011
@@ -140,7 +140,7 @@
        mp = 1
        while 1:
                try:
-                       yield cfg.get('default','map'+`mp`);
+                       yield cfg.get('default','map' + repr(mp));
                        mp= mp+1
                except:
                        return


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to