summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-09 17:49:16 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-09 17:49:16 +0100
commitd6cbb904419bb5e5c0efcf2bf6cef40f52be94e6 (patch)
treee22767bf337e0a6f33bf0f658cb31784db2c0637 /portato
parentbc41d3c03f0ba278e08bc0d828d769148fc617c1 (diff)
downloadportato-d6cbb904419bb5e5c0efcf2bf6cef40f52be94e6.tar.gz
portato-d6cbb904419bb5e5c0efcf2bf6cef40f52be94e6.tar.bz2
portato-d6cbb904419bb5e5c0efcf2bf6cef40f52be94e6.zip
Change 'split(" ")' to single 'split()' to also catch multiple spaces and tabs
Diffstat (limited to 'portato')
-rw-r--r--portato/backend/flags.py4
-rw-r--r--portato/gui/windows/main.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py
index 2b6b266..c80bf8d 100644
--- a/portato/backend/flags.py
+++ b/portato/backend/flags.py
@@ -381,7 +381,7 @@ def write_use_flags ():
while i < line: # stop at the given line
lines.append(f.readline())
i += 1
- l = f.readline().split(" ")
+ l = f.readline().split()
# delete or insert
if delete:
@@ -396,7 +396,7 @@ def write_use_flags ():
file_cache[file] = lines
else: # in cache
- l = file_cache[file][line-1].split(" ")
+ l = file_cache[file][line-1].split()
if delete:
remove(flag, l)
else:
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 0882c2a..6f7423c 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -162,7 +162,7 @@ class PackageTable:
self.linkBox.remove(c)
text = pkg.get_package_settings("HOMEPAGE")
- texts = text.split(" ")
+ texts = text.split()
ftexts = []
for count, t in enumerate(texts):