diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/bin/diversity.py b/bin/diversity.py
index <HASH>..<HASH> 100755
--- a/bin/diversity.py
+++ b/bin/diversity.py
@@ -193,12 +193,14 @@ def main():
err_msg = "\nError while processing the mapping file: {}\n"
sys.exit(err_msg.format(ioe))
+ # parse BIOM table
try:
bi... | Adds some explanatory comments to separate sections of main() in diversity.py. | py |
diff --git a/gridtk/manager.py b/gridtk/manager.py
index <HASH>..<HASH> 100644
--- a/gridtk/manager.py
+++ b/gridtk/manager.py
@@ -41,7 +41,7 @@ class JobManager:
if hasattr(self, 'session'):
raise RuntimeError('Dead lock detected. Please do not try to lock the session when it is already locked!')
- if... | Added fix for python 3 that cannot compare tuples with lists. | py |
diff --git a/spyder/plugins/editor/widgets/recover.py b/spyder/plugins/editor/widgets/recover.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/recover.py
+++ b/spyder/plugins/editor/widgets/recover.py
@@ -127,8 +127,8 @@ class RecoveryDialog(QDialog):
def add_label(self):
"""Add label wi... | Tweak text at top of recovery dialog window | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -659,20 +659,6 @@ class Playable(object):
self.reload()
-@utils.registerPlexObject
-class Release(PlexObject):
- TAG = 'Release'
- key = '/updater/status'
-
- def _loadData(sel... | remove Release Release class was unintendedly added by a merge before it was properly located. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,7 @@ def install_fixer_names():
the full list as if distribute had done it, then we can skip the fixers
we want to exempt.
"""
+ if not hasattr(setuptools, 'lib2to3_fixer_packages'): return
names = getatt... | Fix for AttributeError in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,9 +48,9 @@ setup(
'': ['*.txt', '*.md', '*.rst', '*.json', '*.conf', '*.html',
'*.css', '*.ico', '*.png', 'LICENSE', 'LEGAL', '*.sovrin']},
include_package_data=True,
- data_files=[(
- ... | comment copying of data/pool_transactions_sandbox on install to .sovrin - it should be done using setup_util.py (#<I>) | py |
diff --git a/meshio/ply/_ply.py b/meshio/ply/_ply.py
index <HASH>..<HASH> 100644
--- a/meshio/ply/_ply.py
+++ b/meshio/ply/_ply.py
@@ -42,7 +42,6 @@ cell_type_to_count = {
"quad": 4,
"polygon5": 5,
"polygon6": 6,
- "triangle6": 6,
"quad8": 8,
} | Remove `triangle6` from PLY's supported type | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -83,6 +83,7 @@ arguments = dict(
.hg = setuptools_scm.hg:parse
.git = setuptools_scm.git:parse
.hg_archival.txt = setuptools_scm.hg:parse_archival
+ PKG-INFO = setuptools_scm.hacks:parse_pkgin... | readd pkg-info, i forgot to run python setup.py egg_info | py |
diff --git a/test/stub/tools.py b/test/stub/tools.py
index <HASH>..<HASH> 100644
--- a/test/stub/tools.py
+++ b/test/stub/tools.py
@@ -46,7 +46,7 @@ class StubServer(Thread):
self.script = path_join(dirname(__file__), "scripts", script)
def run(self):
- check_call(["bolt", "stub", "-t", "3", "-l"... | Trying 5 second stub server timeout | py |
diff --git a/twittytwister/twitter.py b/twittytwister/twitter.py
index <HASH>..<HASH> 100644
--- a/twittytwister/twitter.py
+++ b/twittytwister/twitter.py
@@ -20,6 +20,7 @@ from oauth import oauth
from twisted.application import service
from twisted.internet import defer, reactor, endpoints
from twisted.internet.err... | Handle DNS errors as other connect errors. --HG-- branch : streaming-monitor | py |
diff --git a/python/test/misc.py b/python/test/misc.py
index <HASH>..<HASH> 100644
--- a/python/test/misc.py
+++ b/python/test/misc.py
@@ -5,7 +5,7 @@ import tempfile
from sparknlp.common import RegexRule
from sparknlp.util import *
-from sparknlp.base import TokenAssembler
+from sparknlp.base import *
from sparkn... | - Corrected missing imports in unittests | py |
diff --git a/datalab/mlalpha/commands/_mlalpha.py b/datalab/mlalpha/commands/_mlalpha.py
index <HASH>..<HASH> 100644
--- a/datalab/mlalpha/commands/_mlalpha.py
+++ b/datalab/mlalpha/commands/_mlalpha.py
@@ -653,7 +653,7 @@ options = {
'temp_location': os.path.join(OUTPUT_DIR, 'tmp'),
'job_name': '%s' + '-' + ... | Fix ml sdk location in "extra package" in pipeline code generation. (#<I>) | py |
diff --git a/volatildap/control.py b/volatildap/control.py
index <HASH>..<HASH> 100644
--- a/volatildap/control.py
+++ b/volatildap/control.py
@@ -152,6 +152,8 @@ class ProxyServer(core.BaseServer):
def get(self, dn):
response = requests.get(self._path('entry/') + dn)
+ if response.status_code ==... | Properly raise a KeyError for missing keys. | py |
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py
index <HASH>..<HASH> 100644
--- a/astrobase/lcproc.py
+++ b/astrobase/lcproc.py
@@ -1931,8 +1931,8 @@ def runpf(lcfile,
magcols=None,
errcols=None,
lcformat='hat-sql',
- pfmethods=['gls','pdm','bls'],
- pfkwargs=[{... | lcproc.run_pf: remove BLS, add AoVMH + specwindow L-S as default PF | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -20,14 +20,20 @@ def _serial_sanitizer(instr):
index = int(floor(length * .75))
return "{0}{1}".format(instr[:index], 'X' * (length - index))
+_fqdn_sanitizer... | Add sanitization to nodename and localhost grains | py |
diff --git a/tcod/event.py b/tcod/event.py
index <HASH>..<HASH> 100644
--- a/tcod/event.py
+++ b/tcod/event.py
@@ -796,10 +796,6 @@ class EventDispatch(Generic[T]):
tcod.event.K_n: (1, 1),
}
- COMMAND_KEYS = { # key_symbol: command_name
- tcod.event.K_ESCAPE: "escape",
- ... | Simplify tcod.event example. The command keys dict is simple but not very extendable, so I'll just show an if..elif chain here instead. | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -696,9 +696,8 @@ class Item(BaseItem):
>>> item.upload('/path/to/image.jpg', metadata=md, queue_derive=False)
True
- :rtype: bool
-... | Fixes doc string on upload() method Docs were OK, but docstring was not. | py |
diff --git a/src/kba/pipeline/test_task_queues.py b/src/kba/pipeline/test_task_queues.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/test_task_queues.py
+++ b/src/kba/pipeline/test_task_queues.py
@@ -11,6 +11,8 @@ def test_zk():
zookeeper_address = 'localhost:2181',
namespace = 'kba-pipeline-ta... | updating test_task_queues.py to handle the newly saved forensics info about config | py |
diff --git a/tracking/middleware.py b/tracking/middleware.py
index <HASH>..<HASH> 100644
--- a/tracking/middleware.py
+++ b/tracking/middleware.py
@@ -73,8 +73,7 @@ class VisitorTrackingMiddleware(object):
time_on_site = (now - visitor.start_time).seconds
visitor.time_on_site = time_on_site
- ... | Removing code addition I forgot about Didn't check the diff on last commit. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import os
from setuptools import setup
-version = '1.0.0'
+version = '1.1.0'
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: | Bump package version Adressed issue with jsonfield library for django <I> support | py |
diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py
index <HASH>..<HASH> 100644
--- a/djangocms_blog/models.py
+++ b/djangocms_blog/models.py
@@ -63,7 +63,7 @@ class BlogCategory(TranslatableModel):
translations = TranslatedFields(
name=models.CharField(_('name'), max_length=255),
- ... | increased slug field length (default is <I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
name="django-pin-passcode",
packages=find_packages(),
include_package_data=True, # declarations in MANIFEST.in
- version="0.1.7",
+ version="0.1.8",
author="Eric Carmichael",
... | mark this as supporting py <I> | py |
diff --git a/cherrypy/wsgiserver/wsgiserver2.py b/cherrypy/wsgiserver/wsgiserver2.py
index <HASH>..<HASH> 100644
--- a/cherrypy/wsgiserver/wsgiserver2.py
+++ b/cherrypy/wsgiserver/wsgiserver2.py
@@ -146,18 +146,6 @@ else:
return n
-class FauxSocket(object):
-
- """Faux socket with the minimal interface ... | Move FauxSocket and _fileobject_uses_str_type into CP_makefile class | py |
diff --git a/visidata/data.py b/visidata/data.py
index <HASH>..<HASH> 100644
--- a/visidata/data.py
+++ b/visidata/data.py
@@ -53,8 +53,17 @@ Sheet._coltype = SettableColumn
@asyncthread
@Sheet.api
def addRows(sheet, n, idx):
+ addedRows = {}
for i in Progress(range(n), 'adding'):
- sheet.addRow(sheet... | [addRows] make undo-able | py |
diff --git a/ncluster/aws_backend.py b/ncluster/aws_backend.py
index <HASH>..<HASH> 100644
--- a/ncluster/aws_backend.py
+++ b/ncluster/aws_backend.py
@@ -84,12 +84,12 @@ class Task(backend.Task):
self.ssh_client = u.ssh_to_task(self)
self._setup_tmux()
self._run_raw('mkdir -p ' + self.remote_scratch)
- ... | forgo EFS re-mount when reusing initialized instance | py |
diff --git a/tests/interpolation_test.py b/tests/interpolation_test.py
index <HASH>..<HASH> 100644
--- a/tests/interpolation_test.py
+++ b/tests/interpolation_test.py
@@ -89,11 +89,13 @@ def makeInstance(name, weight=None, width=None):
class DesignspaceTest(unittest.TestCase):
def build_designspace(self, masters,... | [interpolation_test] clean up mkdtemp with finally block | py |
diff --git a/skpy/conn.py b/skpy/conn.py
index <HASH>..<HASH> 100644
--- a/skpy/conn.py
+++ b/skpy/conn.py
@@ -564,14 +564,21 @@ class SkypeLiveAuthProvider(SkypeAuthProvider):
"""
# Do the authentication dance.
params = self.getParams()
- params["opid"] = self.sendCreds(user, pwd, par... | Handle early t value during Live logins | py |
diff --git a/openid/test/cryptutil.py b/openid/test/cryptutil.py
index <HASH>..<HASH> 100644
--- a/openid/test/cryptutil.py
+++ b/openid/test/cryptutil.py
@@ -64,6 +64,7 @@ def test_binaryLongConvert():
cases = [
('\x00', 0L),
('\x01', 1L),
+ ('\x7F', 127L),
('\x00\xFF', 255L),
... | [project @ Add <I> case from spec to binaryLongConvert] | py |
diff --git a/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py b/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
index <HASH>..<HASH> 100644
--- a/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
+++ b/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
@@ -83,10 +83,9 @@ def set_dotstar_power(state):
"""Set ... | esp<I>/boards/UM_TINYPICO: Remove use of PULL_HOLD. Change APA<I> power handling to not use the (now removed) PULL_HOLD constant. | py |
diff --git a/schedule/views.py b/schedule/views.py
index <HASH>..<HASH> 100644
--- a/schedule/views.py
+++ b/schedule/views.py
@@ -248,7 +248,7 @@ class DeleteEventView(EventEditMixin, DeleteView):
def get_occurrence(event_id, occurrence_id=None, year=None, month=None,
day=None, hour=None, minute... | Change view's get_occurrence to use current local timezone instead of UTC | py |
diff --git a/pbs.py b/pbs.py
index <HASH>..<HASH> 100644
--- a/pbs.py
+++ b/pbs.py
@@ -98,7 +98,7 @@ class Command(object):
# if a dash version of our underscore command exists and use that
# if it does
if "_" in program: path = which(program.replace("_", "-"))
- ... | raising CommandNotFound on command run if not exists, but not when seeked through 'which' | py |
diff --git a/spyderlib/widgets/tabs.py b/spyderlib/widgets/tabs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/tabs.py
+++ b/spyderlib/widgets/tabs.py
@@ -16,6 +16,7 @@ from spyderlib.qt.QtGui import (QTabWidget, QMenu, QDrag, QApplication,
QHBoxLayout)
from spyderlib.qt.QtCor... | Tabs: Add Ctrl+W as shortcut to close tabs in platforms other than Windows | py |
diff --git a/chosenadmin/middleware.py b/chosenadmin/middleware.py
index <HASH>..<HASH> 100644
--- a/chosenadmin/middleware.py
+++ b/chosenadmin/middleware.py
@@ -9,7 +9,8 @@ PATH_MATCHER = compile(r"^/admin/\w+")
class ChosenAdminMiddleware(object):
- def __init__(self, *args, **kwargs):
+ def __init__(self... | fix compat with post <I> middleware rework | py |
diff --git a/spacy/tests/regression/test_issue704.py b/spacy/tests/regression/test_issue704.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/regression/test_issue704.py
+++ b/spacy/tests/regression/test_issue704.py
@@ -11,5 +11,5 @@ def test_issue704(EN):
text = '“Atticus said to Jem one day, “I’d rather you sho... | Make sure sents are a list | py |
diff --git a/influxdb/_dataframe_client.py b/influxdb/_dataframe_client.py
index <HASH>..<HASH> 100644
--- a/influxdb/_dataframe_client.py
+++ b/influxdb/_dataframe_client.py
@@ -252,7 +252,8 @@ class DataFrameClient(InfluxDBClient):
field_columns = list(
set(dataframe.columns).difference(... | fix bug in _convert_dataframe_to_json function that need not transform index if data type of index is already DatatimeIndex (#<I>) | py |
diff --git a/google/api/control/__init__.py b/google/api/control/__init__.py
index <HASH>..<HASH> 100644
--- a/google/api/control/__init__.py
+++ b/google/api/control/__init__.py
@@ -19,7 +19,7 @@ from __future__ import absolute_import
import google.api.gen.servicecontrol_v1_messages as messages
import google.api.gen... | Bump verson to <I>b6 | py |
diff --git a/yubico.py b/yubico.py
index <HASH>..<HASH> 100644
--- a/yubico.py
+++ b/yubico.py
@@ -50,14 +50,15 @@ class Yubico():
request_urls = self.generate_request_urls()
threads = []
+ timeout = timeout or TIMEOUT
for url in request_urls:
- thread = URLThread('%s?%s' % (url, query_string))
+ thread... | If user explicitly specifies a timeout when calling a verify method, this value is also passed to the urlopen request. | py |
diff --git a/moztelemetry/filter_service.py b/moztelemetry/filter_service.py
index <HASH>..<HASH> 100644
--- a/moztelemetry/filter_service.py
+++ b/moztelemetry/filter_service.py
@@ -106,7 +106,7 @@ class SDB:
for domain in domains:
query = "select submissionDate from {} where {}".format(domain.na... | Fix missing build_id bug. | py |
diff --git a/neo4j/meta.py b/neo4j/meta.py
index <HASH>..<HASH> 100644
--- a/neo4j/meta.py
+++ b/neo4j/meta.py
@@ -19,4 +19,4 @@
# limitations under the License.
-version = "1.5.0a1.dev0"
+version = "1.5.0a1" | updated version to <I>a1 | py |
diff --git a/tests/test_saved_search.py b/tests/test_saved_search.py
index <HASH>..<HASH> 100755
--- a/tests/test_saved_search.py
+++ b/tests/test_saved_search.py
@@ -185,9 +185,10 @@ class TestCase(testlib.TestCase):
saved_searches.delete('sdk-test1')
self.assertFalse('sdk-test1' in saved_searche... | Added unit test to make sure saved searches are properly handling URL encoding for their search strings. | py |
diff --git a/unicodeutil/unicodeutil.py b/unicodeutil/unicodeutil.py
index <HASH>..<HASH> 100644
--- a/unicodeutil/unicodeutil.py
+++ b/unicodeutil/unicodeutil.py
@@ -5,6 +5,7 @@ from fractions import Fraction
import codecs
import os
import re
+import struct
import six
@@ -55,7 +56,7 @@ def _unichr(i):
... | Fix to get things working on PyPy3 on Windows <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,7 @@ with open('README.md') as f:
setup(name='r6sapi',
author='billyoyo',
+ author_email='billyoyo@hotmail.co.uk',
url='https://github.com/billy-yoyo/RainbowSixSiege-Python-API',
version=... | add author email to setup.py | py |
diff --git a/bitex/interfaces/poloniex.py b/bitex/interfaces/poloniex.py
index <HASH>..<HASH> 100644
--- a/bitex/interfaces/poloniex.py
+++ b/bitex/interfaces/poloniex.py
@@ -72,12 +72,13 @@ class Poloniex(PoloniexREST):
@return_json(fmt.balance)
def balance(self, detailed=False, **kwargs):
+ q = {}
... | fixed error in poloniex interface which had missing dict | py |
diff --git a/gocd_cli/command.py b/gocd_cli/command.py
index <HASH>..<HASH> 100644
--- a/gocd_cli/command.py
+++ b/gocd_cli/command.py
@@ -50,3 +50,9 @@ class BaseCommand(object):
args=' '.join('<{0}>'.format(arg) for arg in args),
kwargs=' '.join('[--{0}]'.format(arg.replace('_', '-')) for ar... | Add generic return value to BaseCommand Backporting in commit history time! | py |
diff --git a/dallinger/utils.py b/dallinger/utils.py
index <HASH>..<HASH> 100644
--- a/dallinger/utils.py
+++ b/dallinger/utils.py
@@ -4,6 +4,7 @@ import functools
import io
import os
import random
+import shutil
import string
import subprocess
import sys
@@ -54,15 +55,19 @@ def run_command(cmd, out):
p = su... | Actually run command, and clean up tempfile | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -1380,6 +1380,9 @@ class ElementPlot(BokehPlot, GenericElementPlot):
for cb in self.callbacks:
c... | Initialize links on ElementPlot when it is top-level | py |
diff --git a/pycanvas/assignment.py b/pycanvas/assignment.py
index <HASH>..<HASH> 100644
--- a/pycanvas/assignment.py
+++ b/pycanvas/assignment.py
@@ -4,7 +4,7 @@ from util import combine_kwargs
class Assignment(CanvasObject):
- def __str__(self): # pragma: no cover
+ def __str__(self):
return "{} ... | Remove no-cover from __str__ method | py |
diff --git a/dictobj.py b/dictobj.py
index <HASH>..<HASH> 100644
--- a/dictobj.py
+++ b/dictobj.py
@@ -100,7 +100,7 @@ class DictionaryObject(object):
class MutableDictionaryObject(DictionaryObject):
"""
- Slight enhancement of the DictionaryObject allowing one to add class
+ Slight enhancement of the Dictionar... | Updated a comment to say "attributes" instead of "class attributes". | py |
diff --git a/gwpy/timeseries/timeseries.py b/gwpy/timeseries/timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/timeseries.py
+++ b/gwpy/timeseries/timeseries.py
@@ -368,7 +368,7 @@ class TimeSeries(TimeSeriesBase):
overlap=overlap, window=window, **kwargs)
@_update_doc_wi... | TimeSeries.spectrogram: default to overlap=None so that it gets set to the recommended overlap for the window | py |
diff --git a/bolt/__init__.py b/bolt/__init__.py
index <HASH>..<HASH> 100644
--- a/bolt/__init__.py
+++ b/bolt/__init__.py
@@ -6,12 +6,12 @@ import logging
import os
import sys
-import tasks
-from _btconfig import ConfigurationManager
-from _bterror import *
-from _btregistry import TaskRegistry
-from _btrunner imp... | Fixing imports for python 3 | py |
diff --git a/ot/utils.py b/ot/utils.py
index <HASH>..<HASH> 100644
--- a/ot/utils.py
+++ b/ot/utils.py
@@ -189,7 +189,7 @@ def cost_normalization(C, norm=None):
elif norm == "loglog":
C = np.log1p(np.log1p(C))
else:
- raise ValueError(f'Norm {norm} is not a valid option. '
+ raise Value... | Attempting to fix docstyle | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -781,7 +781,7 @@ def plot_varind_gridsearch_results(gridresults):
plt.subplot(3,4,12)
plt.plot... | fakelcrecovery: add in items that one varindex found but other missed | py |
diff --git a/frontend/user_data.py b/frontend/user_data.py
index <HASH>..<HASH> 100644
--- a/frontend/user_data.py
+++ b/frontend/user_data.py
@@ -130,7 +130,8 @@ class UserData(object):
"courseid": courseid,
... | Fix user_tasks collection in DB. This is the main drawback of MongoDB... Fixes #<I> | py |
diff --git a/plenum/config.py b/plenum/config.py
index <HASH>..<HASH> 100644
--- a/plenum/config.py
+++ b/plenum/config.py
@@ -46,7 +46,7 @@ seqNoDbName = 'seq_no_db'
clientBootStrategy = ClientBootStrategy.PoolTxn
hashStore = {
- "type": HS_FILE
+ "type": HS_ROCKSDB
}
primaryStorage = None | Revert hash store to RocksDB | py |
diff --git a/jasper.py b/jasper.py
index <HASH>..<HASH> 100755
--- a/jasper.py
+++ b/jasper.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python2
# -*- coding: utf-8-*-
+
import os
import sys
import shutil
@@ -113,10 +114,10 @@ class Jasper(object):
if __name__ == "__main__":
- print("=================================... | Updated copyright notice in jasper.py | py |
diff --git a/discord/channel.py b/discord/channel.py
index <HASH>..<HASH> 100644
--- a/discord/channel.py
+++ b/discord/channel.py
@@ -109,6 +109,11 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
permissions_for.__doc__ = discord.abc.GuildChannel.permissions_for.__doc__
+ ... | Add TextChannel.members to get members that can see a channel. | py |
diff --git a/tests/test_debug.py b/tests/test_debug.py
index <HASH>..<HASH> 100644
--- a/tests/test_debug.py
+++ b/tests/test_debug.py
@@ -17,12 +17,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-from sys import version_info
-try:
- from unittest import skipIf
-except ImportError... | [Tr] Remove old Python <I> test fudges | py |
diff --git a/wtfpeewee/orm.py b/wtfpeewee/orm.py
index <HASH>..<HASH> 100644
--- a/wtfpeewee/orm.py
+++ b/wtfpeewee/orm.py
@@ -8,7 +8,8 @@ from wtforms import validators
from wtfpeewee.fields import ModelSelectField
from peewee import PrimaryKeyField, IntegerField, FloatField, DateTimeField,\
- BooleanField, Cha... | Adding rules for date and time fields | py |
diff --git a/angr/analyses/cfg_node.py b/angr/analyses/cfg_node.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_node.py
+++ b/angr/analyses/cfg_node.py
@@ -54,7 +54,7 @@ class CFGNode(object):
# you are using `return_target` to do some serious stuff.
self.return_target = None
- self.in... | CFGNode: make sure instruction_addrs is not None. | py |
diff --git a/rw/www.py b/rw/www.py
index <HASH>..<HASH> 100644
--- a/rw/www.py
+++ b/rw/www.py
@@ -459,6 +459,8 @@ def setup(app_name, address=None, port=None):
return
else: # "normal" request
request.path = request.path.rstrip('/')
+ if request... | Fix for trailing slashes. | py |
diff --git a/dataproperty/_dataproperty.py b/dataproperty/_dataproperty.py
index <HASH>..<HASH> 100644
--- a/dataproperty/_dataproperty.py
+++ b/dataproperty/_dataproperty.py
@@ -30,6 +30,7 @@ from typepy.type import (
String,
NullString,
)
+
from ._align_getter import align_getter
from ._common import Def... | Add a method to merge ColumnDataProperty instances | py |
diff --git a/tests/ipopo/test_decorators.py b/tests/ipopo/test_decorators.py
index <HASH>..<HASH> 100644
--- a/tests/ipopo/test_decorators.py
+++ b/tests/ipopo/test_decorators.py
@@ -433,8 +433,8 @@ class SimpleDecoratorsTests(unittest.TestCase):
decorators._get_specifications, invalid)
... | Let test_decorators be runnable alone | py |
diff --git a/chainlet/chainlink.py b/chainlet/chainlink.py
index <HASH>..<HASH> 100644
--- a/chainlet/chainlink.py
+++ b/chainlet/chainlink.py
@@ -464,7 +464,7 @@ class ChainLinker(object):
_elements.append(element)
if len(_elements) == 1:
return _elements[0]
- if any(isins... | Fix: MetaChain is now used for any forking element, not just bundles | py |
diff --git a/webdriver_test_tools/__about__.py b/webdriver_test_tools/__about__.py
index <HASH>..<HASH> 100644
--- a/webdriver_test_tools/__about__.py
+++ b/webdriver_test_tools/__about__.py
@@ -10,7 +10,7 @@ __title__ = 'webdriver_test_tools'
__project__ = 'WebDriver Test Tools'
__summary__ = 'A front-end testing fr... | Bumped version to <I> | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -239,6 +239,7 @@ class RunningCommand(object):
def wait(self):
self._handle_exit_code(self.process.wait())
+ return self
# here we determine if we had an exception, or an error code that we weren't
#... | returning self from .wait(), so that we can return output from a running command more intuitively | py |
diff --git a/hotdoc/core/symbols.py b/hotdoc/core/symbols.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/symbols.py
+++ b/hotdoc/core/symbols.py
@@ -68,7 +68,7 @@ class Symbol (Base):
self._make_unique_id())
else:
link = self.link
- self.link = link_resolver.upser... | symbols: fix conflict with old gtk-doc links on rebuild. | py |
diff --git a/plexapi/video.py b/plexapi/video.py
index <HASH>..<HASH> 100644
--- a/plexapi/video.py
+++ b/plexapi/video.py
@@ -30,7 +30,7 @@ class Video(PlexPartialObject):
self._data = data
self.listType = 'video'
self.addedAt = utils.toDatetime(data.attrib.get('addedAt'))
- self.key ... | WTF. why is a key in history None?? | py |
diff --git a/spherecluster/tests/test_von_mises_fisher_mixture.py b/spherecluster/tests/test_von_mises_fisher_mixture.py
index <HASH>..<HASH> 100644
--- a/spherecluster/tests/test_von_mises_fisher_mixture.py
+++ b/spherecluster/tests/test_von_mises_fisher_mixture.py
@@ -75,12 +75,12 @@ def test_vmf_log_detect_breakage(... | Tests run in python3 | py |
diff --git a/tests/integration/shell/call.py b/tests/integration/shell/call.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/call.py
+++ b/tests/integration/shell/call.py
@@ -21,9 +21,12 @@ class CallTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
def test_default_output(self):
... | Fix outputter bug introduced with changes to yaml | py |
diff --git a/sdk/eventhub/azure-eventhubs/azure/eventhub/common.py b/sdk/eventhub/azure-eventhubs/azure/eventhub/common.py
index <HASH>..<HASH> 100644
--- a/sdk/eventhub/azure-eventhubs/azure/eventhub/common.py
+++ b/sdk/eventhub/azure-eventhubs/azure/eventhub/common.py
@@ -123,7 +123,7 @@ class EventData(object):
... | Fix tracing if app_props is None (#<I>) | py |
diff --git a/tests/test_docker_warning.py b/tests/test_docker_warning.py
index <HASH>..<HASH> 100644
--- a/tests/test_docker_warning.py
+++ b/tests/test_docker_warning.py
@@ -2,14 +2,14 @@ from __future__ import absolute_import
import unittest
from mock import mock
from cwltool.utils import windows_default_container... | tests/test_docker_warning.py: Fix error due to file name refactor | py |
diff --git a/seed_stage_based_messaging/testsettings.py b/seed_stage_based_messaging/testsettings.py
index <HASH>..<HASH> 100644
--- a/seed_stage_based_messaging/testsettings.py
+++ b/seed_stage_based_messaging/testsettings.py
@@ -1,4 +1,4 @@
-from seed_stage_based_messaging.settings import * # flake8: noqa
+from seed... | flake8 ignores in test settings | py |
diff --git a/py_linq/py_linq.py b/py_linq/py_linq.py
index <HASH>..<HASH> 100644
--- a/py_linq/py_linq.py
+++ b/py_linq/py_linq.py
@@ -425,7 +425,11 @@ class Enumerable(object):
class Enumerable3(object):
-
+ """
+ Could probably optimize code by inheriting from Enumerable and overwriting only the methods th... | Merge of Python3Support branch into master | py |
diff --git a/source/test/common/test_zy_history.py b/source/test/common/test_zy_history.py
index <HASH>..<HASH> 100755
--- a/source/test/common/test_zy_history.py
+++ b/source/test/common/test_zy_history.py
@@ -24,6 +24,7 @@ from rafcon.mvc.views.main_window import MainWindowView
# singleton elements
import rafcon.... | add missing import to modifiaction-history test to avoid multiple StateMachineManagerModels | py |
diff --git a/coursera/coursera_dl.py b/coursera/coursera_dl.py
index <HASH>..<HASH> 100644
--- a/coursera/coursera_dl.py
+++ b/coursera/coursera_dl.py
@@ -1284,17 +1284,12 @@ def print_failed_urls(failed_urls):
def download_class(args, class_name):
"""
- Try to download class as if it were an old style class... | Do not attempt to download old-style Coursera classes Coursera shut down old platfrom on <I> of July, <I>. related #<I> | py |
diff --git a/src/saml2/response.py b/src/saml2/response.py
index <HASH>..<HASH> 100644
--- a/src/saml2/response.py
+++ b/src/saml2/response.py
@@ -569,11 +569,14 @@ class AuthnResponse(StatusResponse):
# check authn_statement.session_index
def condition_ok(self, lax=False):
+ if not self.assertio... | Fix AuthnResponse.condition_ok to be not so restrictive As we can see in specs, Conditions are not required, so we should not to check assertion on its existence. | py |
diff --git a/peep.py b/peep.py
index <HASH>..<HASH> 100755
--- a/peep.py
+++ b/peep.py
@@ -715,14 +715,14 @@ class MismatchedReq(DownloadedReq):
"freak out, because someone has tampered with the packages.\n\n")
def error(self):
- preamble = ' %s: expected%s' % (
- self._proj... | Improve readability of MismatchedReq.error() | py |
diff --git a/example/appengine_oauth.py b/example/appengine_oauth.py
index <HASH>..<HASH> 100644
--- a/example/appengine_oauth.py
+++ b/example/appengine_oauth.py
@@ -27,7 +27,7 @@ import os
from google.appengine.ext import webapp
from google.appengine.ext import db
from google.appengine.ext.webapp import util
-impo... | Added a note about requiring httplib2 | py |
diff --git a/sirmordred/config.py b/sirmordred/config.py
index <HASH>..<HASH> 100644
--- a/sirmordred/config.py
+++ b/sirmordred/config.py
@@ -604,7 +604,7 @@ class Config():
# a backend name could include and extra ":<param>"
# to have several backend entries with different configs
gelk_back... | [config] Remove google_hits from extra backends After the inclusion of the perceval backend for google hits, it is not needed anymore the google hits logstash support (extra backend). | py |
diff --git a/bucky/main.py b/bucky/main.py
index <HASH>..<HASH> 100644
--- a/bucky/main.py
+++ b/bucky/main.py
@@ -319,7 +319,7 @@ class Bucky(object):
log.info("Stopping client %s", client)
pipe.send(None)
client.join(2)
- children = multiprocessing.active_children()
+ ... | do not count SyncManagers towards active children left running on shutdown | py |
diff --git a/bids/layout/writing.py b/bids/layout/writing.py
index <HASH>..<HASH> 100644
--- a/bids/layout/writing.py
+++ b/bids/layout/writing.py
@@ -137,7 +137,8 @@ def build_path(entities, path_patterns, strict=False):
for v in values.split('|'):
valid_values += _expand_options(v)
- ... | fix: allow for entities not to be defined | py |
diff --git a/tests/tests/basic.py b/tests/tests/basic.py
index <HASH>..<HASH> 100644
--- a/tests/tests/basic.py
+++ b/tests/tests/basic.py
@@ -16,6 +16,7 @@
#
# Copyright (c) 2007, 2008 Guillaume Chazarain <guichaz@gmail.com>
+import os
import unittest
import pexpect
from gsh_tests import launch_gsh
@@ -52,3 +53... | Test prepending some data to the prompt, i.e. now waiting for the prompt to be ready to enter commands | py |
diff --git a/scripts/setup_genome.py b/scripts/setup_genome.py
index <HASH>..<HASH> 100644
--- a/scripts/setup_genome.py
+++ b/scripts/setup_genome.py
@@ -70,9 +70,9 @@ if __name__ == "__main__":
parser.add_argument("-g", "--gtf", default=None,
help="GTF file of the transcriptome")
pa... | Add examples for what would be good genome/build names. | py |
diff --git a/master/buildbot/test/unit/test_schedulers_forcesched.py b/master/buildbot/test/unit/test_schedulers_forcesched.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_schedulers_forcesched.py
+++ b/master/buildbot/test/unit/test_schedulers_forcesched.py
@@ -268,10 +268,15 @@ class TestForceSche... | Fix difference in string representation of type({}) in Python 2 and 3. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,8 @@
from distutils.core import setup
setup(
name = 'redash_client',
- packages = ['redash_client'],
- version = '0.1.4',
+ packages = ['redash_client', 'redash_client.dashboards'],
+ version = '0.1.5',
des... | Pip packaging should include dashboards subdirectory. | py |
diff --git a/khard/config.py b/khard/config.py
index <HASH>..<HASH> 100644
--- a/khard/config.py
+++ b/khard/config.py
@@ -138,7 +138,8 @@ class Config:
except configobj.ConfigObjError as err:
exit(str(err))
- def _validate(self, config):
+ @staticmethod
+ def _validate(config):
... | Turn _validate into a staticmethod | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -3,7 +3,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
-__version__ = '2.0.14'
+__version__ = '2.0.14.dev1'
__summary__ = 'Industrial-strength Natur... | Set version to <I>.dev1 | py |
diff --git a/python/neuroglancer/segment_colors.py b/python/neuroglancer/segment_colors.py
index <HASH>..<HASH> 100644
--- a/python/neuroglancer/segment_colors.py
+++ b/python/neuroglancer/segment_colors.py
@@ -27,10 +27,10 @@ def hash_function(state,value):
k2 = 0x1b873593
state = state & 0xffffffff
val... | replaced zero_fill_right_shift() with regular right shift | py |
diff --git a/pydocumentdb/http_constants.py b/pydocumentdb/http_constants.py
index <HASH>..<HASH> 100644
--- a/pydocumentdb/http_constants.py
+++ b/pydocumentdb/http_constants.py
@@ -266,3 +266,25 @@ class HttpContextProperties:
"""Constants of http context properties.
"""
SubscriptionId = 'SubscriptionI... | HTTP status codes as described in documentation. (<URL>) | py |
diff --git a/examples/save_private_keys.py b/examples/save_private_keys.py
index <HASH>..<HASH> 100644
--- a/examples/save_private_keys.py
+++ b/examples/save_private_keys.py
@@ -35,7 +35,7 @@ signer = SigningKey(salt, password)\
# check public key
if signer.pubkey != pubkey:
print("Bad credentials !")
- exit... | Exit with error code 1 in case of bad credentials | py |
diff --git a/ripl/slide2png.py b/ripl/slide2png.py
index <HASH>..<HASH> 100644
--- a/ripl/slide2png.py
+++ b/ripl/slide2png.py
@@ -154,7 +154,10 @@ class Slide2png:
orientation = exif.get('Orientation', 1)
- if orientation == 6:
+ landscape = img.height < img.width
+
+ ... | images only need rotating if exif says orientation is 6 and image is landscape | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='httpagentparser',
- version='1.1.4',
+ version='1.2.0',
url="https://github.com/shon/httpagentparser",
classifiers=[
'Progr... | Version bump after some good contribution by nigelmcnie (<URL>) and few others. | py |
diff --git a/engine/impact_functions_for_testing/unspecific_building_impact_model.py b/engine/impact_functions_for_testing/unspecific_building_impact_model.py
index <HASH>..<HASH> 100644
--- a/engine/impact_functions_for_testing/unspecific_building_impact_model.py
+++ b/engine/impact_functions_for_testing/unspecific_bu... | Got rid of print stmnt | py |
diff --git a/eppy/useful_scripts/internalLoads.py b/eppy/useful_scripts/internalLoads.py
index <HASH>..<HASH> 100644
--- a/eppy/useful_scripts/internalLoads.py
+++ b/eppy/useful_scripts/internalLoads.py
@@ -23,7 +23,7 @@ import sys
pathnameto_eplusscripting = "../../"
sys.path.append(pathnameto_eplusscripting)
-imp... | Read .IDF simulation file contents into eppy data structures, and print to screen | py |
diff --git a/gwpy/table/io/pycbc.py b/gwpy/table/io/pycbc.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/io/pycbc.py
+++ b/gwpy/table/io/pycbc.py
@@ -22,9 +22,7 @@
import re
from os.path import basename
-from six import string_types
-
-from lal.utils import CacheEntry
+import numpy
from ...io.hdf5 import (ident... | table.io.pycbc: resolved import issues - removed unused imports - adding missing import - reinstated missing function | py |
diff --git a/vcs/backends/git/changeset.py b/vcs/backends/git/changeset.py
index <HASH>..<HASH> 100644
--- a/vcs/backends/git/changeset.py
+++ b/vcs/backends/git/changeset.py
@@ -246,8 +246,9 @@ class GitChangeset(BaseChangeset):
which is generally not good. Should be replaced with algorithm
iterating... | fixes issue with having custom format for git-log | py |
diff --git a/jawa/util/classloader.py b/jawa/util/classloader.py
index <HASH>..<HASH> 100644
--- a/jawa/util/classloader.py
+++ b/jawa/util/classloader.py
@@ -97,7 +97,12 @@ class ClassLoader(object):
try:
full_path = self.path_map[path]
except KeyError:
- raise FileNotFoundErr... | We removed the default behaviour of looking for a class both with and without .class in <I>eda<I>, revert it. | py |
diff --git a/imgaug/augmenters/size.py b/imgaug/augmenters/size.py
index <HASH>..<HASH> 100644
--- a/imgaug/augmenters/size.py
+++ b/imgaug/augmenters/size.py
@@ -1981,6 +1981,11 @@ class KeepSizeByResize(meta.Augmenter):
return result
+ def _augment_polygons(self, polygons_on_images, random_state, pare... | Add polygon augmentation method to KeepSizeByResize | py |
diff --git a/tests/testcases.py b/tests/testcases.py
index <HASH>..<HASH> 100644
--- a/tests/testcases.py
+++ b/tests/testcases.py
@@ -2,7 +2,6 @@ from django.contrib.gis import geos
from django.test import Client, RequestFactory, testcases
import graphene
-from graphene.types.generic import GenericScalar
from .... | Removed unused query from testcase | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,8 @@ setup(
'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
+ 'P... | Declares the project works on PyPy. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.