mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 08:19:12 +00:00
Fixed an infinite loop bug
This commit is contained in:
1 parent
9563fe0700
commit
4594eca7e8
1 file changed
+4
-4
@@ -175,7 +175,7 @@ class UGO:
|
||||
|
||||
if name+".tmb" in names:
|
||||
j = 2
|
||||
while "%s_%i.tmb" % (name, j) not in names:
|
||||
while "%s_%i.tmb" % (name, j) in names:
|
||||
j += 1
|
||||
name = "%s_%i" % (name, j)
|
||||
|
||||
@@ -189,7 +189,7 @@ class UGO:
|
||||
|
||||
if name+".ntft" in names:
|
||||
j = 2
|
||||
while "%s_%i.ntft" % (name, j) not in names:
|
||||
while "%s_%i.ntft" % (name, j) in names:
|
||||
j += 1
|
||||
name = "%s_%i" % (name, j)
|
||||
|
||||
@@ -551,7 +551,7 @@ class UGO:
|
||||
if __name__ == "__main__":
|
||||
print " == UGO.py =="
|
||||
print " == by pbsds =="
|
||||
print " == v0.92 =="
|
||||
print " == v0.93 =="
|
||||
print
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
@@ -622,4 +622,4 @@ if __name__ == "__main__":
|
||||
|
||||
print "Writing UGO..."
|
||||
ugo.WriteFile(output)
|
||||
print "Done"
|
||||
print "Done"
|
||||
Reference in new issue
Block a user
