Skip to content

Commit

Permalink
Don't break filenames containing spaces, only chop of trailing newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Jan 5, 2012
1 parent 4e7867e commit dba42e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,7 +2677,7 @@ def store_readlist(dir, name):

r = []
if os.path.exists(os.path.join(dir, store, name)):
r = [line.strip() for line in open(os.path.join(dir, store, name), 'r')]
r = [line.rstrip('\n') for line in open(os.path.join(dir, store, name), 'r')]
return r

def read_tobeadded(dir):
Expand Down

0 comments on commit dba42e5

Please sign in to comment.