Skip to content

Commit

Permalink
Merge pull request #30 from m4rkus/master
Browse files Browse the repository at this point in the history
enables creation of new files, issue #29
  • Loading branch information
henrikpersson committed Jan 8, 2014
2 parents 193ea02 + 35bd011 commit 69ccddb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ def parse_input(self, input_line):
input_line = input_line.decode("utf8").strip()
if (input_line == ""):
return
if (input_line == "."):
self.parse_file(b".\n")
return
k, v = input_line.split(":", 1)
if(k == "data"):
if (k == "data"):
self.file_size = int(v)
self.in_file = True
if len(self.env) > 1:
self.in_file = True
else:
self.env[k] = v.strip()
else:
Expand Down

0 comments on commit 69ccddb

Please sign in to comment.