Skip to content

Commit

Permalink
A few more notices in CONTRIBUTING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gpotter2 committed Sep 15, 2018
1 parent 1101920 commit b018a7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -126,6 +126,8 @@ The project aims to provide code that works both on Python 2 and Python 3. There
- use scapy.modules.six.itervalues(dict) instead of dict.values() or dict.itervalues()
- use scapy.modules.six.string_types instead of basestring
- `__bool__ = __nonzero__` must be used when declaring `__nonzero__` methods
- `__next__ = next` must be used when declaring `next` methods in iterators
- `StopIteration` must NOT be used in generators (but it can still be used in iterators)
- `io.BytesIO` must be used instead of `StringIO` when using bytes
- `__cmp__` must not be used.
- UserDict should be imported via `six.UserDict`
Expand Down

0 comments on commit b018a7d

Please sign in to comment.