diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cumulusci/cli/cli.py b/cumulusci/cli/cli.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cli.py
+++ b/cumulusci/cli/cli.py
@@ -882,7 +882,8 @@ def task_run(config, task_name, org, o, debug, debug_before, debug_after, no_pro
org_config = config.project_config.get_org(org)
else:
org... | Allow cci task run against tasks without a salesforce org requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,10 @@ class BuildWithMakefile(build_py.build_py):
"""Custom 'build' command that runs 'make build' first."""
def run(self):
subprocess.check_call(['make', 'build'])
- return super(BuildWithM... | [pkg] Fix the custom 'setup.py build' under Py2 With Python2, distutils' build_py command is an old-style class, which doesn't support `super()`. | py |
diff --git a/mishmash/__main__.py b/mishmash/__main__.py
index <HASH>..<HASH> 100644
--- a/mishmash/__main__.py
+++ b/mishmash/__main__.py
@@ -25,7 +25,10 @@ def _pErr(msg):
def main(args):
import multiprocessing
- multiprocessing.set_start_method("fork")
+ try:
+ multiprocessing.set_start_method("... | fix: Protect against not being the first to call multiprocessing.set_start_method | py |
diff --git a/pymongo/bulk.py b/pymongo/bulk.py
index <HASH>..<HASH> 100644
--- a/pymongo/bulk.py
+++ b/pymongo/bulk.py
@@ -115,7 +115,7 @@ def _merge_legacy(run, full_result, result, index):
full_result['nUpserted'] += affected
else:
full_result['nUpdated'] += affected
- full_r... | Fix nModified reporting - spec change PYTHON-<I> | py |
diff --git a/openquake/server/views.py b/openquake/server/views.py
index <HASH>..<HASH> 100644
--- a/openquake/server/views.py
+++ b/openquake/server/views.py
@@ -281,6 +281,12 @@ def run_calc(request):
tasks.update_calculation(callback_url, status="failed", einfo=einfo)
return HttpResponse(json.dumps... | Managed properly the case of missing job.ini file Former-commit-id: eaf4ab<I>c7ca7bcb<I>fd5d6c5b<I>e4b7bdccdc | py |
diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/plugins/ustreamtv.py
+++ b/src/livestreamer/plugins/ustreamtv.py
@@ -16,7 +16,7 @@ class UStreamTV(Plugin):
def _get_channel_id(self, url):
res = urlget(url)
- ... | plugins.ustream: Update for new layout. | py |
diff --git a/Lib/fontParts/base/segment.py b/Lib/fontParts/base/segment.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/segment.py
+++ b/Lib/fontParts/base/segment.py
@@ -302,6 +302,8 @@ class BaseSegment(
"""
Subclasses may override this method.
"""
+ if self.points and self.p... | return all off curves in case of quad off curves only | py |
diff --git a/owslib/util.py b/owslib/util.py
index <HASH>..<HASH> 100644
--- a/owslib/util.py
+++ b/owslib/util.py
@@ -591,6 +591,10 @@ def dump(obj, prefix=''):
def getTypedValue(data_type, value):
'''Utility function to cast a string value to the appropriate XSD type. '''
+ # If the default value is empty
... | Fix empty default value (#<I>) * Fix empty default value * Fixed according to suggestion from sbrunner. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ DEPENDENCIES = [
'h5py>=2.7.1',
'matplotlib>=2.0',
'seaborn>=0.8.1',
- 'loam>=0.3.0',
+ 'loam>=0.3.1',
'f90nml>=1.0.2',
'setuptools_scm>=1.15',
] | Bump loam version to <I> | py |
diff --git a/tests/test_new.py b/tests/test_new.py
index <HASH>..<HASH> 100644
--- a/tests/test_new.py
+++ b/tests/test_new.py
@@ -2895,3 +2895,20 @@ def test_new_joliet_false(tmpdir):
do_a_test(iso, check_nofiles)
iso.close()
+
+def test_new_eltorito_multi_boot_always_consistent(tmpdir):
+ # Create a ne... | Add in test for eltorito multi boot always consistent. | py |
diff --git a/landsat/general_helper.py b/landsat/general_helper.py
index <HASH>..<HASH> 100644
--- a/landsat/general_helper.py
+++ b/landsat/general_helper.py
@@ -1,9 +1,4 @@
-# USGS Landsat Imagery Util
-#
-#
-# Author: developmentseed
-# Contributer: scisco, KAPPS-, kamicut
-#
+# Landsat Util
# License: CC0 1.0 Univ... | check if there is value before conversion | py |
diff --git a/werkzeug/wsgi.py b/werkzeug/wsgi.py
index <HASH>..<HASH> 100644
--- a/werkzeug/wsgi.py
+++ b/werkzeug/wsgi.py
@@ -21,7 +21,7 @@ from functools import partial, update_wrapper
from werkzeug._compat import iteritems, text_type, string_types, \
implements_iterator, make_literal_wrapper, to_unicode, to... | Properly retrieve PATH_INFO in SharedDataMiddleware | py |
diff --git a/src/ocrmypdf/optimize.py b/src/ocrmypdf/optimize.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/optimize.py
+++ b/src/ocrmypdf/optimize.py
@@ -444,9 +444,9 @@ def optimize(input_file, output_file, log, context):
jpegs, pngs = extract_images_generic(pike, root, log, options)
transcode_jpegs(p... | optimize: Disable jpg->png migration Needs more testing before release | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -115,7 +115,7 @@ TMP_SYNDIC_MINION_CONF_DIR = os.path.join(TMP_CONF_DIR, 'syndic-minion')
TMP_SYNDIC_MASTER_CONF_DIR = os.path.join(TMP_CONF_... | The scripts directory is now a subdirectory of TMP so it gets cleaned up. | py |
diff --git a/src/sos/workflow_executor.py b/src/sos/workflow_executor.py
index <HASH>..<HASH> 100755
--- a/src/sos/workflow_executor.py
+++ b/src/sos/workflow_executor.py
@@ -1238,7 +1238,7 @@ class Base_Executor:
('result mismatch', len([x for x in res if x == 'signature-mism... | workflow_handler needs to handle new status "new" #<I> | py |
diff --git a/sumologic/sumologic.py b/sumologic/sumologic.py
index <HASH>..<HASH> 100644
--- a/sumologic/sumologic.py
+++ b/sumologic/sumologic.py
@@ -14,8 +14,8 @@ class SumoLogic(object):
self.session = requests.Session()
self.session.auth = (accessId, accessKey)
self.session.headers = {'co... | Fixed syntax issues around caBundle | py |
diff --git a/h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7798_overlapped_knots.py b/h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7798_overlapped_knots.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7798_overlapped_knots.py
+++ b/h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7798_overl... | Fix GAM overlapped knots unit test assert | py |
diff --git a/alchemyjsonschema/dictify.py b/alchemyjsonschema/dictify.py
index <HASH>..<HASH> 100644
--- a/alchemyjsonschema/dictify.py
+++ b/alchemyjsonschema/dictify.py
@@ -96,6 +96,16 @@ class ModelLookup(object):
return name, self.inspect_stack.pop()
+class ComposedModule(object):
+ def __init__(sel... | ComposedModule for Model lookup | py |
diff --git a/osuapi/model.py b/osuapi/model.py
index <HASH>..<HASH> 100644
--- a/osuapi/model.py
+++ b/osuapi/model.py
@@ -165,6 +165,12 @@ class SoloScore(Score):
def __repr__(self):
return "<{0.__module__}.SoloScore user_id={0.user_id} beatmap_id={0.beatmap_id} date={0.date}>".format(self)
+ def __... | Implement hash and eq for SoloScore | py |
diff --git a/spyder/widgets/projects/type/__init__.py b/spyder/widgets/projects/type/__init__.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/projects/type/__init__.py
+++ b/spyder/widgets/projects/type/__init__.py
@@ -70,13 +70,20 @@ class BaseProject(object):
for recent_file in recent_files[:]:
... | Projects: Catch errors when saving/getting the list of open files | py |
diff --git a/ck/kernel.py b/ck/kernel.py
index <HASH>..<HASH> 100644
--- a/ck/kernel.py
+++ b/ck/kernel.py
@@ -870,7 +870,7 @@ def load_text_file(i):
s=b.decode(en).replace('\r','') # decode into Python string (unicode in Python3)
r['string']=s
- cl=i.get('convert_to_list','')
+ cl=i.get('... | fixing small bug in load_text_file | py |
diff --git a/holoviews/plotting/mpl/chart.py b/holoviews/plotting/mpl/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/chart.py
+++ b/holoviews/plotting/mpl/chart.py
@@ -867,6 +867,14 @@ class SpikesPlot(PathPlot, ColorbarPlot):
ax.add_collection(line_segments)
return {'artist': line_... | Mpl SpikesPlot now correctly computes extents | py |
diff --git a/test/unittest_inference.py b/test/unittest_inference.py
index <HASH>..<HASH> 100644
--- a/test/unittest_inference.py
+++ b/test/unittest_inference.py
@@ -745,7 +745,10 @@ x = randint(1)
infered = list(astng.igetattr('x'))
self.failUnlessEqual(len(infered), 2)
value = [str(v) for ... | Fix a typo in unittest_inference and make it work both when invoked directly and when invoked from pytest. | py |
diff --git a/spyder/preferences/shortcuts.py b/spyder/preferences/shortcuts.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/shortcuts.py
+++ b/spyder/preferences/shortcuts.py
@@ -61,15 +61,7 @@ VALID_KEYS = [getattr(Qt, 'Key_{0}'.format(k)) for k in KEYSTRINGS+SINGLE_KEYS]
VALID_ACCENT_CHARS = "ÁÉÍOÚáéíúóàèìòù... | Un-blacklist Shift+Del, Shift+Ins and Alt+Backspace | py |
diff --git a/ffmpeg_normalize/_streams.py b/ffmpeg_normalize/_streams.py
index <HASH>..<HASH> 100644
--- a/ffmpeg_normalize/_streams.py
+++ b/ffmpeg_normalize/_streams.py
@@ -236,7 +236,7 @@ class AudioStream(MediaStream):
'i': self.media_file.ffmpeg_normalize.target_level,
'lra': self.media_f... | use measured offset in second pass, fixes #<I> | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -5,18 +5,13 @@
# license that can be found in the LICENSE file.
import os
-from fabric.api import abort, cd, env, local, put, run, settings
+from fabric.api import abort, cd, env, local, put, run
current_dir = o... | fabfile: changed fabric tasks to use circus | py |
diff --git a/pyModeS/streamer/screen.py b/pyModeS/streamer/screen.py
index <HASH>..<HASH> 100644
--- a/pyModeS/streamer/screen.py
+++ b/pyModeS/streamer/screen.py
@@ -101,6 +101,7 @@ class Screen(Thread):
icaos = np.sort(icaos)
for row in range(3, self.scr_h - 3):
+ icao = None
... | streamer.screen: fix undefined variable icao on emty flight list The icao variable is tested for None on line <I> but is not defined if no flight is known | py |
diff --git a/src/SpiffWorkflow/Task.py b/src/SpiffWorkflow/Task.py
index <HASH>..<HASH> 100644
--- a/src/SpiffWorkflow/Task.py
+++ b/src/SpiffWorkflow/Task.py
@@ -170,7 +170,9 @@ class Task(object):
self.workflow = workflow
self.parent = parent
self.children ... | Add State Tracking for Debugging - Make Task.state a property - Add Task.state_history and Task.log | py |
diff --git a/pyspider/libs/response.py b/pyspider/libs/response.py
index <HASH>..<HASH> 100644
--- a/pyspider/libs/response.py
+++ b/pyspider/libs/response.py
@@ -7,6 +7,8 @@
import json
import chardet
+import lxml.html
+import lxml.etree
from pyquery import PyQuery
from requests.structures import CaseInsensitive... | build elements for pyquery | py |
diff --git a/txnmain/validator_cli.py b/txnmain/validator_cli.py
index <HASH>..<HASH> 100644
--- a/txnmain/validator_cli.py
+++ b/txnmain/validator_cli.py
@@ -17,6 +17,7 @@ import importlib
import logging
import os
import sys
+import traceback
import warnings
from sawtooth.config import ArgparseOptionsConfig
@@ ... | Capture fatal errors and print them to stderr This ensures that errors will show up in the logs when stdout and stderr is captured (as in daemon mode). | py |
diff --git a/tests/test_generate.py b/tests/test_generate.py
index <HASH>..<HASH> 100644
--- a/tests/test_generate.py
+++ b/tests/test_generate.py
@@ -121,7 +121,7 @@ def assert_callback_called_at_interval(torrent, monkeypatch):
# Compare number of callback calls
number_of_pieces = math.ceil(t.size / t.piec... | Callback is always called at least twice | py |
diff --git a/tickets/models.py b/tickets/models.py
index <HASH>..<HASH> 100644
--- a/tickets/models.py
+++ b/tickets/models.py
@@ -41,4 +41,3 @@ class TicketComment(models.Model):
def __unicode__(self):
return "Comment on " + unicode(self.ticket)
- | remove unnecessary newline at the end of models file | py |
diff --git a/pooch/core.py b/pooch/core.py
index <HASH>..<HASH> 100644
--- a/pooch/core.py
+++ b/pooch/core.py
@@ -493,8 +493,10 @@ class Pooch:
elements = line.strip().split()
if len(elements) > 3 or len(elements) < 2:
raise OSError(
- "Expe... | Add registry file and bad content to error message (#<I>) When loading a registry file, inform the name of the file and include the offending content in the error message instead of just the line number. Fixes #<I> | py |
diff --git a/flask_jsonpify.py b/flask_jsonpify.py
index <HASH>..<HASH> 100644
--- a/flask_jsonpify.py
+++ b/flask_jsonpify.py
@@ -23,8 +23,8 @@ def __dumps(*args, **kwargs):
as the top-level object, if it is the only argument.
"""
indent = None
- if (current_app.config.get('JSONIFY_PRETTYPRINT_REG... | Fixes PEP8 failure on binary operator | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100755
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -4474,6 +4474,34 @@ def test_blackwing_corruptor():
assert game.player1.hero.health == 27
+def test_crackle():
+ game = prepare_game(SHAMAN, SHAMAN)
+ crackle = game.player1.give("... | Add tests for Crackle and I Am Murloc | py |
diff --git a/tensorly/kruskal.py b/tensorly/kruskal.py
index <HASH>..<HASH> 100644
--- a/tensorly/kruskal.py
+++ b/tensorly/kruskal.py
@@ -182,6 +182,7 @@ def plot_kruskal(factors, figsize=(5,10), lspec='-', plot_n=None, plots='line',
if ax is None:
_, ax = plt.subplots(R, ndim,
... | share x axes within factors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ setup(name='salt',
'man/salt-minion.1',
]),
('share/man/man7',
- ['salt.7',
+ ['man/salt.7',
... | fix reference to salt<I> manpage | py |
diff --git a/lambdas/access_counts/index.py b/lambdas/access_counts/index.py
index <HASH>..<HASH> 100644
--- a/lambdas/access_counts/index.py
+++ b/lambdas/access_counts/index.py
@@ -265,8 +265,8 @@ EXTS_ACCESS_COUNTS = textwrap.dedent("""\
bucket,
split(substr(element_at(split(key, '/... | Fix SQL in access counts lambda (#<I>) | py |
diff --git a/bucky/statsd.py b/bucky/statsd.py
index <HASH>..<HASH> 100644
--- a/bucky/statsd.py
+++ b/bucky/statsd.py
@@ -53,6 +53,9 @@ class StatsDHandler(threading.Thread):
def enqueue_timers(self, stime):
ret = 0
for k, v in self.timers.iteritems():
+ # Skip timers that haven't col... | Skip empty timers in statsd If a timer didn't have any values reported in a given time duration it would cause the calculations to fail. This just skips these entries and reports no values for that time period. | py |
diff --git a/vcspull/util.py b/vcspull/util.py
index <HASH>..<HASH> 100644
--- a/vcspull/util.py
+++ b/vcspull/util.py
@@ -122,7 +122,8 @@ def lookup_repos(config, dirmatch=None, vcsurlmatch=None, namematch=None):
repo_dict = {
'name': repo,
'cwd': directory,
- ... | support legacy version of repo url key | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,12 +21,11 @@ def extras_require():
def install_requires():
- requires = ['six']
- if sys.version_info[:2] < (3, 5):
- requires.append("typing>=3.5.2")
- if sys.version_info[0] == 2:
- requires.a... | BLD: Use PEP <I> version markers. So that environment tooling, e.g. `pipenv` can use the python version markers when determining dependencies. | py |
diff --git a/shinken/log.py b/shinken/log.py
index <HASH>..<HASH> 100644
--- a/shinken/log.py
+++ b/shinken/log.py
@@ -90,7 +90,7 @@ class Log:
# If we want a local log write, do it
if local_log is not None:
- logging.info(s)
+ logging.info(s.strip())
def register_local_... | Update shinken/log.py | py |
diff --git a/referral/models.py b/referral/models.py
index <HASH>..<HASH> 100644
--- a/referral/models.py
+++ b/referral/models.py
@@ -17,6 +17,13 @@ class Campaign(models.Model):
def __unicode__(self):
return self.name
+ def count_users(self):
+ count = 0
+ for referrer in self.referre... | add count_users method to Campaign model | py |
diff --git a/umi_tools/extract.py b/umi_tools/extract.py
index <HASH>..<HASH> 100644
--- a/umi_tools/extract.py
+++ b/umi_tools/extract.py
@@ -311,7 +311,7 @@ def main(argv=None):
U.error("option --retain-umi only works with --extract-method=regex")
if (options.filtered_out and not options.extract_metho... | Insert missing "options" in test for white list conditions (#<I>) fixes #<I> | py |
diff --git a/cosmic_ray/config.py b/cosmic_ray/config.py
index <HASH>..<HASH> 100644
--- a/cosmic_ray/config.py
+++ b/cosmic_ray/config.py
@@ -1,20 +1,25 @@
"""Configuration module."""
+import logging
import sys
import yaml
+LOG = logging.getLogger()
+
def load_config(filename=None):
"""Load a configurat... | Add logging to load_config I've tried to run a command from the report ("cosmic-ray worker module zero_iteration_loop 9") and it was waiting for input on stdin. This additional logging should help in this case (when run in verbose mode). | py |
diff --git a/src/django_future/models.py b/src/django_future/models.py
index <HASH>..<HASH> 100644
--- a/src/django_future/models.py
+++ b/src/django_future/models.py
@@ -54,8 +54,8 @@ class ScheduledJob(models.Model):
def run(self):
# TODO: logging?
- args = self.args
- kwargs = self.kwar... | Make sure args and kwargs passed to the callable are correctly typed (as list and dict). | py |
diff --git a/dvc/stage.py b/dvc/stage.py
index <HASH>..<HASH> 100644
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -31,7 +31,9 @@ class Output(object):
if not self.use_cache:
changed = self._changed_md5()
else:
- changed = not os.path.samefile(self.path, self.cache)
+ cha... | Bugfix: dvc repro - check if files exist before actions | py |
diff --git a/examples/djopenid/consumer/views.py b/examples/djopenid/consumer/views.py
index <HASH>..<HASH> 100644
--- a/examples/djopenid/consumer/views.py
+++ b/examples/djopenid/consumer/views.py
@@ -169,7 +169,7 @@ def finishOpenID(request):
consumer.SUCCESS:
{'url': response.getDisplayI... | [project @ djopenid.consumer.views: don't die when sreg_response is None] | py |
diff --git a/tests/jenkins-ng.py b/tests/jenkins-ng.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins-ng.py
+++ b/tests/jenkins-ng.py
@@ -541,7 +541,7 @@ def prepare_ssh_access(options):
print('Generating temporary SSH Key')
ssh_key_path = os.path.join(options.workspace, 'jenkins_ssh_key_test')
subproce... | There is no support for ECDSA on OpenSSH < <I>. This breaks tests on several platforms. | py |
diff --git a/src/calmjs/base.py b/src/calmjs/base.py
index <HASH>..<HASH> 100644
--- a/src/calmjs/base.py
+++ b/src/calmjs/base.py
@@ -35,6 +35,12 @@ class BaseModuleRegistry(object):
"""
self.registry_name = registry_name
+ self._init()
+
+ def _init(self):
+ """
+ Subclasse... | Make it (slightly) easier to subclass registry - Have a dedicated _init as the override entry point. | py |
diff --git a/peppy/sample.py b/peppy/sample.py
index <HASH>..<HASH> 100644
--- a/peppy/sample.py
+++ b/peppy/sample.py
@@ -774,7 +774,7 @@ class Sample(PathExAttMap):
except NotImplementedError as e:
if not permissive:
raise
- _LOGGER.warning(e.message)
... | remove outdated error attr ref; acct for inheritance in py3 | py |
diff --git a/models/rasmachine/rasmachine.py b/models/rasmachine/rasmachine.py
index <HASH>..<HASH> 100644
--- a/models/rasmachine/rasmachine.py
+++ b/models/rasmachine/rasmachine.py
@@ -112,14 +112,13 @@ def extend_model(model_name, model, pmids):
else:
npapers += 1
... | Call relevance filters upon preassembly in RAS Machine | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -82,8 +82,12 @@ def base_app():
app_ = Flask('testapp')
app_.config.update(
TESTING=True,
+ # Celery 3
CELERY_ALWAYS_EAGER=True,
CELERY_EAGER_PROP... | tests: fix celery v3 vs v4 warnings * Fixes warnings about Celery v3 config when running with Celery v4. | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -565,6 +565,9 @@ def test_draw_grid():
grid = ia.draw_grid([image], rows=1, cols=1)
assert np.array_equal(grid, image)
+ grid = ia.draw_grid(np.uint8([image]), rows=1, cols=1)
+ assert np.... | Extend test for ia.draw_grid() | py |
diff --git a/salt/modules/win_useradd.py b/salt/modules/win_useradd.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_useradd.py
+++ b/salt/modules/win_useradd.py
@@ -262,7 +262,7 @@ def info(name):
for group in groups:
if not group:
continue
- grouplist.append(group.strip('*'))
+ ... | strip both spaces and * from Group names | py |
diff --git a/dallinger/pytest_dallinger.py b/dallinger/pytest_dallinger.py
index <HASH>..<HASH> 100644
--- a/dallinger/pytest_dallinger.py
+++ b/dallinger/pytest_dallinger.py
@@ -421,11 +421,18 @@ def pytest_generate_tests(metafunc):
def selenium_recruits(request, recruitment_loop):
def recruits():
for u... | Remove local storage hack since we use tmpdirs now. | py |
diff --git a/helium/timeseries.py b/helium/timeseries.py
index <HASH>..<HASH> 100644
--- a/helium/timeseries.py
+++ b/helium/timeseries.py
@@ -80,7 +80,7 @@ class Timeseries(Iterable):
"""
- def __init__(self, session, resource_type, resource_id,
+ def __init__(self, session, resource_class, resource_id,... | Timeseries should take the resource class | py |
diff --git a/discord/ui/item.py b/discord/ui/item.py
index <HASH>..<HASH> 100644
--- a/discord/ui/item.py
+++ b/discord/ui/item.py
@@ -48,6 +48,7 @@ class Item(Generic[V]):
The current UI items supported are:
- :class:`discord.ui.Button`
+ - :class:`discord.ui.Select`
"""
__item_repr_attribut... | Add Select to list of types in Item's docstring | py |
diff --git a/test/unit/test_response.py b/test/unit/test_response.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_response.py
+++ b/test/unit/test_response.py
@@ -85,7 +85,7 @@ class TestRequestResponse(TestCase):
def test_no_id(self):
# Not OK - requests must have an id.
with self.assertRais... | Adjustment to satisfy pylint | py |
diff --git a/pyOCD/interface/pyusb_backend.py b/pyOCD/interface/pyusb_backend.py
index <HASH>..<HASH> 100644
--- a/pyOCD/interface/pyusb_backend.py
+++ b/pyOCD/interface/pyusb_backend.py
@@ -133,7 +133,12 @@ class PyUSB(Interface):
"""
write data on the OUT endpoint associated to the HID interface
... | Pad write buffer to endpoint size rather than hard-code <I> | py |
diff --git a/atomic_reactor/plugin.py b/atomic_reactor/plugin.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugin.py
+++ b/atomic_reactor/plugin.py
@@ -232,13 +232,15 @@ class PluginsRunner(object):
except Exception as ex:
msg = "plugin '%s' raised an exception: %r" % (plugin_class.... | Record errors for exit plugins that must succeed Previously plugins such as koji_promote, i.e. exit plugins which must succeed, do not have their failures recorded in the workflow's `plugins_errors` dict. This means build errors due to failures in such plugins have no meaningful error message stored in the build annot... | py |
diff --git a/tests/exemplars_test.py b/tests/exemplars_test.py
index <HASH>..<HASH> 100644
--- a/tests/exemplars_test.py
+++ b/tests/exemplars_test.py
@@ -2,6 +2,12 @@
# Copyright (c) Cognitect, Inc.
# All rights reserved.
import unittest
+
+# get parent directory into python path
+import sys, os
+sys.path.append(os... | Add parent dir to pythonpath so as not to depend on environment var | py |
diff --git a/services/managers/discord_manager.py b/services/managers/discord_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/discord_manager.py
+++ b/services/managers/discord_manager.py
@@ -287,11 +287,11 @@ class DiscordManager:
if len(groups) == 0:
group_ids = []
else:
... | Intelligently produces group listing. Halves the time required to create account. Closes #<I> | py |
diff --git a/redis/sentinel.py b/redis/sentinel.py
index <HASH>..<HASH> 100644
--- a/redis/sentinel.py
+++ b/redis/sentinel.py
@@ -1,3 +1,4 @@
+import os
import random
from redis.client import StrictRedis
@@ -90,6 +91,14 @@ class SentinelConnectionPool(ConnectionPool):
pass
raise SlaveNotFound... | Override _checkpid() in SentinelConnectionPool | py |
diff --git a/dataviews/ndmapping.py b/dataviews/ndmapping.py
index <HASH>..<HASH> 100644
--- a/dataviews/ndmapping.py
+++ b/dataviews/ndmapping.py
@@ -386,6 +386,13 @@ class NdIndexableMapping(param.Parameterized, Dimensional):
return repr(self)
+ def dim_values(self, dim):
+ """
+ Returns... | Added dim_values method to NdMapping | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-version = __version__ = "4.44.0 Released 13-Jun-2021"
+version = __version__ = "4.44.0.1 Unreleased\nWindow.current_location docstring update to indicate value my be ... | docstring update for Window.current_location - mention the titlebar and menubar can affect accuracy | py |
diff --git a/keyring/tests/test_backend.py b/keyring/tests/test_backend.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/test_backend.py
+++ b/keyring/tests/test_backend.py
@@ -401,6 +401,19 @@ class UncryptedFileKeyringTestCase(FileKeyringTests, unittest.TestCase):
def init_keyring(self):
return keyrin... | Add test to capture #<I> | py |
diff --git a/openquake/hazardlib/correlation.py b/openquake/hazardlib/correlation.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/correlation.py
+++ b/openquake/hazardlib/correlation.py
@@ -123,8 +123,7 @@ class JB2009CorrelationModel(BaseCorrelationModel):
def jbcorrelation(distances, imt, vs30_clustering)... | Shortened docstring [skip CI] | py |
diff --git a/flask_cors/decorator.py b/flask_cors/decorator.py
index <HASH>..<HASH> 100644
--- a/flask_cors/decorator.py
+++ b/flask_cors/decorator.py
@@ -21,8 +21,8 @@ def cross_origin(*args, **kwargs):
In the simplest case, simply use the default parameters to allow all
origins in what is the most permissiv... | FIX: typo CSRF (#<I>) typo correction | py |
diff --git a/delphin/__about__.py b/delphin/__about__.py
index <HASH>..<HASH> 100644
--- a/delphin/__about__.py
+++ b/delphin/__about__.py
@@ -3,7 +3,7 @@
# the warehouse project:
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
-__version__ = '0.9.0+dev'
+__version__ = '0.9.1'
__version_in... | <I> with proper version string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,12 @@
+import sys
import os.path
from setuptools import setup, find_packages
+single_version = '--single-version-externally-managed'
+if single_version in sys.argv:
+ print >> sys.stderr, '[pdb++] WARNING: ignor... | explicitly ignore --single-version-externally-managed: this is needed because else 'pip install' places pdb.py in a place that comes after the stdlib, and thus is hidden by the real pdb.py | py |
diff --git a/troposphere/config.py b/troposphere/config.py
index <HASH>..<HASH> 100644
--- a/troposphere/config.py
+++ b/troposphere/config.py
@@ -26,7 +26,7 @@ class SourceDetails(AWSProperty):
class Source(AWSProperty):
props = {
'Owner': (basestring, True),
- 'SourceDetails': (SourceDetails, Fa... | Fix Source object to take a list of SourceDetails (#<I>) The documentation is unclear but the example (and my testing) shows that this is the correct syntax <URL> | py |
diff --git a/script/lib/config.py b/script/lib/config.py
index <HASH>..<HASH> 100644
--- a/script/lib/config.py
+++ b/script/lib/config.py
@@ -2,4 +2,4 @@
NODE_VERSION = 'v0.11.10'
BASE_URL = 'https://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMIT = '1df8e7cdac8aa74c91c19ae0691... | Update libchromiumcontent: Suppress CFAllocator warning. | py |
diff --git a/fake_rpi/picamera.py b/fake_rpi/picamera.py
index <HASH>..<HASH> 100644
--- a/fake_rpi/picamera.py
+++ b/fake_rpi/picamera.py
@@ -30,6 +30,12 @@ class PiCamera(Base):
Base.__init__(self, self.__class__)
pass
+ def __enter__(self):
+ return self
+
+ def __exit__(self, exc_type, exc_val, exc_tb):
+ ... | picamera: add enter and exit so 'with picamera' contextmanager works | py |
diff --git a/insane/cli.py b/insane/cli.py
index <HASH>..<HASH> 100644
--- a/insane/cli.py
+++ b/insane/cli.py
@@ -37,10 +37,10 @@ OPTIONS = simopt.Options([
"""
Periodic boundary conditions
If -d is given, set up PBC according to -pbc such that no periodic
- images are closer than the value given... | Updated help text for -d | py |
diff --git a/py/execnet/register.py b/py/execnet/register.py
index <HASH>..<HASH> 100644
--- a/py/execnet/register.py
+++ b/py/execnet/register.py
@@ -171,16 +171,19 @@ def stdouterrin_setnull():
devnull = 'NUL'
else:
devnull = '/dev/null'
+ # stdin
sys.stdin = os.fdopen(os.d... | [svn r<I>] small cleanup of ground std* descriptors. --HG-- branch : trunk | py |
diff --git a/vmo/analysis/analysis.py b/vmo/analysis/analysis.py
index <HASH>..<HASH> 100644
--- a/vmo/analysis/analysis.py
+++ b/vmo/analysis/analysis.py
@@ -136,7 +136,7 @@ def graph_adjacency_lists(oracle):
Edges are stored with multiplicity.
"""
length = oracle.n_states
- graph = [(oracle.trn[i]+o... | Removed reverse suffix transitions from oracle to adjacency (list/matrix) conversion | py |
diff --git a/graftm/create.py b/graftm/create.py
index <HASH>..<HASH> 100644
--- a/graftm/create.py
+++ b/graftm/create.py
@@ -820,6 +820,18 @@ in the final GraftM package. If you are sure these sequences are correct, turn o
logging.info("Cleaning up")
self._cleanup(self.the_trash)
+ # Test o... | create: test package works after creation (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,9 +5,6 @@ https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
-import ez_setup
-ez_setup.use_setuptools()
-
# Always prefer setuptools over distutils
from setuptoo... | Dont use ez_setup, just setuptools | py |
diff --git a/uliweb/orm/__init__.py b/uliweb/orm/__init__.py
index <HASH>..<HASH> 100644
--- a/uliweb/orm/__init__.py
+++ b/uliweb/orm/__init__.py
@@ -2022,6 +2022,13 @@ class ManyToMany(ReferenceProperty):
index_name = '%s_mindx' % self.tablename
if index_name not in [x.name for x in self.tab... | Fix __mapping_only__ for manytomany bug | py |
diff --git a/sklearn_porter/Estimator.py b/sklearn_porter/Estimator.py
index <HASH>..<HASH> 100644
--- a/sklearn_porter/Estimator.py
+++ b/sklearn_porter/Estimator.py
@@ -201,6 +201,21 @@ class Estimator(EstimatorInterApiABC):
@staticmethod
def _load(estimator, logger: Union[Logger, int] = ERROR):
+ ... | feature/oop-api-refactoring: Add docstr for _load | py |
diff --git a/pulsar/client/interface.py b/pulsar/client/interface.py
index <HASH>..<HASH> 100644
--- a/pulsar/client/interface.py
+++ b/pulsar/client/interface.py
@@ -85,11 +85,11 @@ class HttpPulsarInterface(PulsarInterface):
assert remote_host is not None, "Failed to determine url for Pulsar client."
... | Ensure trailing slash in url | py |
diff --git a/pybliometrics/scopus/utils/create_config.py b/pybliometrics/scopus/utils/create_config.py
index <HASH>..<HASH> 100644
--- a/pybliometrics/scopus/utils/create_config.py
+++ b/pybliometrics/scopus/utils/create_config.py
@@ -41,7 +41,7 @@ def create_config():
pass
with open(CONFIG_FILE, ... | fixing reference to fname instead of CONFIG_FILE that causes bug when starting up for the first time (#<I>) | py |
diff --git a/tests/test_validation.py b/tests/test_validation.py
index <HASH>..<HASH> 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -70,7 +70,8 @@ class TestValidationMultipoint(unittest.TestCase):
def test_invalid_multipoint(self):
mpoint = geojson.MultiPoint(
- [(3... | fix to comply to PEP-8 style for failed travis build (E<I> line too long) | py |
diff --git a/src/plone/app/mosaic/testing.py b/src/plone/app/mosaic/testing.py
index <HASH>..<HASH> 100644
--- a/src/plone/app/mosaic/testing.py
+++ b/src/plone/app/mosaic/testing.py
@@ -110,11 +110,6 @@ class PloneAppMosaicNoPAC(PloneSandboxLayer):
plone.app.standardtiles,
... | Remove p.a.widgets from the CMFPlone tests | py |
diff --git a/h2o-py/h2o/model/model_base.py b/h2o-py/h2o/model/model_base.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/model/model_base.py
+++ b/h2o-py/h2o/model/model_base.py
@@ -86,3 +86,7 @@ class ModelBase(object):
print
for v in two_dim_tables:
v.show()
+
+ # Delete from cluster as model goes ... | Python auto-delete Models as they leave scope | py |
diff --git a/salt/modules/nova.py b/salt/modules/nova.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nova.py
+++ b/salt/modules/nova.py
@@ -542,7 +542,7 @@ def image_meta_delete(id=None, # pylint: disable=C0103
salt '*' nova.image_meta_delete name=myimage keys=salad,beans
'''
conn = _auth(prof... | [Nova] fix image_meta_delete I apparently can't type and had put in image_meta_data instead of the correct function when moving to SaltNova. | py |
diff --git a/backtrader/cerebro.py b/backtrader/cerebro.py
index <HASH>..<HASH> 100644
--- a/backtrader/cerebro.py
+++ b/backtrader/cerebro.py
@@ -600,7 +600,7 @@ class Cerebro(with_metaclass(MetaParams, object)):
data.reset()
if self._exactbars < 1: # datas can be full length
... | Cerebro calls data._start to allow for post data start operations to take place | py |
diff --git a/cherrypy/_cpwsgiserver.py b/cherrypy/_cpwsgiserver.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpwsgiserver.py
+++ b/cherrypy/_cpwsgiserver.py
@@ -323,8 +323,16 @@ class HTTPRequest(object):
self.outheaders.append(("Server", server.version))
wfile.write(server.protocol + ... | Fix for #<I> (non-string WSGI response headers). | py |
diff --git a/everest/orm.py b/everest/orm.py
index <HASH>..<HASH> 100644
--- a/everest/orm.py
+++ b/everest/orm.py
@@ -227,7 +227,7 @@ def map_system_entities(engine, reset):
Column('guid', String, nullable=False, primary_key=True),
Column('text', String, nullable=False),
... | Fixed the time_stamp column definition in the _user_messages table definition for the ORM repository. | py |
diff --git a/mailparser/mailparser.py b/mailparser/mailparser.py
index <HASH>..<HASH> 100644
--- a/mailparser/mailparser.py
+++ b/mailparser/mailparser.py
@@ -385,7 +385,8 @@ class MailParser(object):
# object headers
if name in ADDRESSES_HEADERS:
- h = decode_header_part(self.message.get... | Fixed parsing headers like reply-to | py |
diff --git a/salt/cloud/clouds/softlayer_hw.py b/salt/cloud/clouds/softlayer_hw.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/softlayer_hw.py
+++ b/salt/cloud/clouds/softlayer_hw.py
@@ -95,24 +95,6 @@ def get_conn(service='SoftLayer_Hardware'):
return client[service]
-def create_options(call=None):
- ... | Remove cruft from dev work | py |
diff --git a/cellpy/_version.py b/cellpy/_version.py
index <HASH>..<HASH> 100644
--- a/cellpy/_version.py
+++ b/cellpy/_version.py
@@ -1,2 +1,2 @@
-version_info = (0, 3, 3, "a3")
+version_info = (0, 3, 3, "a4")
__version__ = ".".join(map(str, version_info)) | bump veresion to <I>.a4 | py |
diff --git a/examples/python/create_sedml2.py b/examples/python/create_sedml2.py
index <HASH>..<HASH> 100644
--- a/examples/python/create_sedml2.py
+++ b/examples/python/create_sedml2.py
@@ -67,13 +67,22 @@ def main (args):
slice.setValue('S1')
# specify mapping
- compDesc = libsedml.CompositeDescription()
-... | - completed numl bits in python create example | py |
diff --git a/phe/command_line.py b/phe/command_line.py
index <HASH>..<HASH> 100755
--- a/phe/command_line.py
+++ b/phe/command_line.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-
+from __future__ import print_function
import datetime
import json | Support older version of Python in CLI tool. #<I> | py |
diff --git a/piplicenses.py b/piplicenses.py
index <HASH>..<HASH> 100644
--- a/piplicenses.py
+++ b/piplicenses.py
@@ -135,8 +135,12 @@ def get_packages(args):
license_text = LICENSE_UNKNOWN
pkg_dirname = "{}-{}.dist-info".format(
pkg.project_name.replace("-", "_"), pkg.version)
- ... | Extended conditions for finding package license files Find a match for LICENSE* / COPYING* Fix #<I> | py |
diff --git a/phypno/datatype.py b/phypno/datatype.py
index <HASH>..<HASH> 100644
--- a/phypno/datatype.py
+++ b/phypno/datatype.py
@@ -289,14 +289,10 @@ class Data:
Raises
------
- AttributeError
- instead of KeyError. AttributeError however has a slightly
- different me... | raise keyerror instead of attributeerror to avoid recursion | py |
diff --git a/pycanvas/group.py b/pycanvas/group.py
index <HASH>..<HASH> 100644
--- a/pycanvas/group.py
+++ b/pycanvas/group.py
@@ -9,6 +9,23 @@ class Group(CanvasObject):
def __str__(self):
return "%s %s %s" % (self.id, self.name, self.description)
+ def get_single_group(self):
+ """
+ ... | added method for get a single group | py |
diff --git a/hamsterlib/lib.py b/hamsterlib/lib.py
index <HASH>..<HASH> 100644
--- a/hamsterlib/lib.py
+++ b/hamsterlib/lib.py
@@ -39,8 +39,8 @@ class HamsterControl(object):
def __init__(self, config):
self.config = config
- self.logger = self.__get_logger()
- self.logger.debug(_("Hamster... | Renamed logger to lib_logger. | py |
diff --git a/cltk/corpus/greek/corpora.py b/cltk/corpus/greek/corpora.py
index <HASH>..<HASH> 100644
--- a/cltk/corpus/greek/corpora.py
+++ b/cltk/corpus/greek/corpora.py
@@ -48,6 +48,10 @@ GREEK_CORPORA = [
{'name': 'greek_word2vec_cltk',
'location': 'remote',
'type': 'model'},
+ {'name': 'greek_te... | ENH: Added Lacus Curtius Greek Corpora for CLTK The pull request adds Lacus Curtius Greek corpora to CLTK. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.