forked from dsoprea/PySvn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return empty dictionary when file has no properties
Fix dsoprea#89: properties method failed when no props defined When a file has no properties, the xml doesn't contain 'target' and target_elem is None. To conform to the documentation for properties, return an empty dict (instead of None). Test for both no properties and mime type property (writing a binary file in the simplest way I can find that works in py2 and py3).
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters