Skip to content

Commit

Permalink
Patch by Dana Lacoste to fix a bug with post-review on Windows where we
Browse files Browse the repository at this point in the history
improperly check for the os.uname function.

Fixes bug #1280.
  • Loading branch information
chipx86 committed Aug 22, 2009
1 parent 30c11fc commit 6cc7f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Lead Developers:
Contributors:

* Chris Clark
* Dana Lacoste
* Eric Huss
* Jeremy Bettis
* Lepton Wu
Expand Down
2 changes: 1 addition & 1 deletion rbtools/postreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@ def _do_diff(self, old_file, new_file, depot_path, base_revision,
Returns a list of strings of diff lines.
"""
if os.uname and os.uname()[0] == 'SunOS':
if hasattr(os, 'uname') and os.uname()[0] == 'SunOS':
diff_cmd = ["gdiff", "-urNp", old_file, new_file]
else:
diff_cmd = ["diff", "-urNp", old_file, new_file]
Expand Down

0 comments on commit 6cc7f94

Please sign in to comment.