Skip to content

Commit

Permalink
Update copyright year to 2017.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jan 21, 2017
1 parent 4c981ee commit ff9f574
Show file tree
Hide file tree
Showing 44 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions discord/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
A basic wrapper for the Discord API.
:copyright: (c) 2015-2016 Rapptz
:copyright: (c) 2015-2017 Rapptz
:license: MIT, see LICENSE for more details.
"""

__title__ = 'discord'
__author__ = 'Rapptz'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015-2016 Rapptz'
__copyright__ = 'Copyright 2015-2017 Rapptz'
__version__ = '1.0.0a0'

from .client import Client, AppInfo, ChannelPermissions
Expand Down
2 changes: 1 addition & 1 deletion discord/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/context_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/embeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Extensions for the discord.py library live in this namespace.
:copyright: (c) 2016 Rapptz
:copyright: (c) 2017 Rapptz
:license: MIT, see LICENSE for more details.
"""
2 changes: 1 addition & 1 deletion discord/ext/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
An extension module to facilitate creation of bot commands.
:copyright: (c) 2016 Rapptz
:copyright: (c) 2017 Rapptz
:license: MIT, see LICENSE for more details.
"""

Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/cooldowns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/ext/commands/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/invite.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
10 changes: 5 additions & 5 deletions discord/opus.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -238,7 +238,7 @@ def set_bandwidth(self, req):
if ret < 0:
log.info('error has happened in set_bandwidth')
raise OpusError(ret)

def set_signal_type(self, req):
if req not in signal_ctl:
raise KeyError('%r is not a valid signal setting. Try one of: %s' % (req, ','.join(signal_ctl)))
Expand All @@ -252,14 +252,14 @@ def set_signal_type(self, req):

def set_fec(self, enabled=True):
ret = _lib.opus_encoder_ctl(self._state, CTL_SET_FEC, 1 if enabled else 0)

if ret < 0:
log.info('error has happened in set_fec')
raise OpusError(ret)

def set_expected_packet_loss_percent(self, percentage):
ret = _lib.opus_encoder_ctl(self._state, CTL_SET_PLP, min(100, max(0, int(percentage * 100))))

if ret < 0:
log.info('error has happened in set_expected_packet_loss_percent')
raise OpusError(ret)
Expand Down
2 changes: 1 addition & 1 deletion discord/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/relationship.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/shard.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion discord/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
The MIT License (MIT)
Copyright (c) 2015-2016 Rapptz
Copyright (c) 2015-2017 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
Expand Down
Loading

0 comments on commit ff9f574

Please sign in to comment.