Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions minifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def is_group_opening(self):
def __eq__(self, other):
if isinstance(other, BashFileIterator._Delimiter):
return other.character == self.character
elif isinstance(other, basestring):
elif isinstance(other, str):
return other == self.character
return False

Expand Down Expand Up @@ -213,7 +213,7 @@ def close_heredoc():
self.pos += 1

assert not self.isInsideGroup(), 'Invalid syntax'
raise StopIteration
# raise StopIteration # XXX I'm not too confident of the purpose of this, but it works without it.
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could look at this one line, that would be great.


def isEscaped(self):
return self.pos in self._indices_of_escaped_characters
Expand Down
2 changes: 1 addition & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ passed=0
failed=0
for f in t*.sh; do
echo -n "$f "
python ../minifier.py $f > _tmp_$f
python3 ../minifier.py $f > _tmp_$f
if [ `diff _tmp_$f minified_$f | wc -c` -ne 0 ]; then
failed=$((failed+1))
echo FAILED
Expand Down