diff options
author | Auke Booij (tulcod) <auke@tulcod.com> | 2010-08-08 12:37:37 +0200 |
---|---|---|
committer | Auke Booij (tulcod) <auke@tulcod.com> | 2010-08-08 13:32:46 +0200 |
commit | 91b2206ffde43894538b1b0f9a1c922875c871ef (patch) | |
tree | 426a9d510f2b67c780bf9484aa5b7edb7851419a | |
parent | Maybe it works like this? (diff) | |
download | g-cran-91b2206ffde43894538b1b0f9a1c922875c871ef.tar.gz g-cran-91b2206ffde43894538b1b0f9a1c922875c871ef.tar.bz2 g-cran-91b2206ffde43894538b1b0f9a1c922875c871ef.zip |
Even better multiline string syntax
-rw-r--r-- | g_common/g_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py index d1d0967..87341ea 100644 --- a/g_common/g_common.py +++ b/g_common/g_common.py @@ -186,9 +186,9 @@ def generate_tree(repo_location,generate_manifest,generate_metadata): os.symlink(ebuild_file,os.path.join(ebuild_dir,package_file)) if generate_metadata: metadata_file=open(os.path.join(ebuild_dir,'metadata.xml'),'w') - metadata_file.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ - "<!DOCTYPE pkgmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">\n"+ - "<pkgmetadata>\n"+ + metadata_file.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"+ \ + "<!DOCTYPE pkgmetadata SYSTEM \"http://www.gentoo.org/dtd/metadata.dtd\">\n"+ \ + "<pkgmetadata>\n"+ \ "</pkgmetadata>\n") metadata_file.close() if generate_manifest: |