Skip to content

Commit

Permalink
more fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed Nov 9, 2023
1 parent d3d49f3 commit 01a2ccb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/upload.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from past.builtins import xrange
from StringIO import StringIO
from io import StringIO
import sys
import os
import pprint
Expand All @@ -23,7 +22,7 @@
site = mwclient.Site(host, path)
site.login(sys.argv[1], sys.argv[2])

name = ''.join(random.choice('abcdefghijklmnopqrstuvwxyz') for i in xrange(8)) + '.png'
name = ''.join(random.choice('abcdefghijklmnopqrstuvwxyz') for i in range(8)) + '.png'

print('Using http://%s%sindex.php?title=File:' % (host, path) + name)
print('Regular upload test')
Expand Down

0 comments on commit 01a2ccb

Please sign in to comment.