Skip to content

Commit

Permalink
define PermissionError for python2
Browse files Browse the repository at this point in the history
because this is python3-ism, it is not defined in python2

This resolves issue #84
  • Loading branch information
xsuchy committed Jun 8, 2017
1 parent 294fd75 commit 46596df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/mockbuild/scm.py
Expand Up @@ -16,6 +16,9 @@
from . import util
from .trace_decorator import traceLog

if six.PY2:
class PermissionError(OSError):
pass

class scmWorker(object):
"""Build RPMs from SCM"""
Expand Down

0 comments on commit 46596df

Please sign in to comment.