diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-09 23:24:08 +0200 |
commit | a677c082aeabba00a079db581bfae194d069cf11 (patch) | |
tree | 5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /locale/pavement.py | |
parent | Remove old .pot files (diff) | |
download | pyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz |
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'locale/pavement.py')
-rw-r--r-- | locale/pavement.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/locale/pavement.py b/locale/pavement.py index fb52243a6..c2820fade 100644 --- a/locale/pavement.py +++ b/locale/pavement.py @@ -134,7 +134,7 @@ def get_source(options): urlretrieve(options.src, "pyload_src.zip") zip = ZipFile("pyload_src.zip") zip.extractall() - path("pyload_src.zip").reshutil.move() + path("pyload_src.zip").remove() folder = [x for x in path(".").dirs() if x.name.startswith("spoob-pyload-")][0] folder.shutil.move(pyload) @@ -146,8 +146,8 @@ def get_source(options): if file.name.endswith(".py"): file.chmod(0755) - (pyload / ".hgtags").reshutil.move() - (pyload / ".gitignore").reshutil.move() + (pyload / ".hgtags").remove() + (pyload / ".gitignore").remove() #(pyload / "docs").rmtree() f = open(pyload / "__init__.py", "wb") @@ -247,9 +247,9 @@ def generate_locale(): makepot("django", path("pyload/web"), EXCLUDE, "./%s\n" % trans.relpath(), [".py", ".html"], ["--language=Python"]) - trans.reshutil.move() + trans.remove() - path("includes.txt").reshutil.move() + path("includes.txt").remove() print "Locale generated" @@ -409,7 +409,7 @@ def makepot(domain, p, excludes=[], includes="", endings=[".py"], xxargs=[]): with open("%s.po" % domain, "rb") as f: content = f.read() - path("%s.po" % domain).reshutil.move() + path("%s.po" % domain).remove() content = content.replace("charset=CHARSET", "charset=UTF-8") with open("locale/%s.pot" % domain, "wb") as f: |