diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/python/ray/workers/setup_runtime_env.py b/python/ray/workers/setup_runtime_env.py
index <HASH>..<HASH> 100644
--- a/python/ray/workers/setup_runtime_env.py
+++ b/python/ray/workers/setup_runtime_env.py
@@ -155,7 +155,7 @@ def current_ray_pip_specifier() -> Optional[str]:
# Running on a nightly whe... | [Core] [runtime env] use ray instead of ray[all] when adding ray dependency (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import sys
from setuptools import setup, find_packages
if sys.version_info[0] == 2:
- requires = ['python-dateutil>=1.0, <2.0']
+ requires = ['python-dateutil>=1.0, <2.0, >=2.1']
else:
# Py3k
... | Update dependency on python-dateutil Version <I> added back python2 support. | py |
diff --git a/validator/sawtooth_validator/journal/block_validator.py b/validator/sawtooth_validator/journal/block_validator.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/journal/block_validator.py
+++ b/validator/sawtooth_validator/journal/block_validator.py
@@ -404,6 +404,8 @@ class BlockValidator:... | Send Block New message only after successful validation The block validator sends through the chain controller, to the consensus engine that a block's consensus transactions have been validated. This should only happen after successful validation. | py |
diff --git a/fabric/connection.py b/fabric/connection.py
index <HASH>..<HASH> 100644
--- a/fabric/connection.py
+++ b/fabric/connection.py
@@ -78,7 +78,7 @@ class Connection(Context):
# Client.exec_command does, it already allows configuring a subset of what
# we do / will eventually do / did in 1.x. It's sil... | Pass through Paramiko key_filename temporarily | py |
diff --git a/sqlserver/datadog_checks/sqlserver/sqlserver.py b/sqlserver/datadog_checks/sqlserver/sqlserver.py
index <HASH>..<HASH> 100644
--- a/sqlserver/datadog_checks/sqlserver/sqlserver.py
+++ b/sqlserver/datadog_checks/sqlserver/sqlserver.py
@@ -540,8 +540,11 @@ class SQLServer(AgentCheck):
cursor = s... | Additional debug logging when calling a stored procedure (#<I>) | py |
diff --git a/ontology/rpc/rpc.py b/ontology/rpc/rpc.py
index <HASH>..<HASH> 100644
--- a/ontology/rpc/rpc.py
+++ b/ontology/rpc/rpc.py
@@ -333,8 +333,11 @@ class RpcClient(object):
tx_data = buf.hex()
rpc_struct = RpcClient.set_json_rpc_version(RPC_SEND_TRANSACTION, [tx_data])
r = HttpRequest... | add exception in send_raw_transaction | py |
diff --git a/holoviews/interface/pandas.py b/holoviews/interface/pandas.py
index <HASH>..<HASH> 100644
--- a/holoviews/interface/pandas.py
+++ b/holoviews/interface/pandas.py
@@ -186,7 +186,7 @@ class DataFrameView(Element):
return self.groupby(dimensions, GridSpace)
- def viewmap(self, key_dimensions=[... | Renamed pandas DFrame viewmap method to holomap | py |
diff --git a/python/sparknlp/annotator.py b/python/sparknlp/annotator.py
index <HASH>..<HASH> 100755
--- a/python/sparknlp/annotator.py
+++ b/python/sparknlp/annotator.py
@@ -3265,4 +3265,4 @@ class MarianTransformer(AnnotatorModel):
@staticmethod
def pretrained(name="opus_mt_en_fr", lang="xx", remote_loc=Non... | Fix MarianTransformer pretrianed class in Python [skip ci] | py |
diff --git a/pycbc/io/hdf.py b/pycbc/io/hdf.py
index <HASH>..<HASH> 100644
--- a/pycbc/io/hdf.py
+++ b/pycbc/io/hdf.py
@@ -132,6 +132,7 @@ class DictArray(object):
for g in groups:
if g in d:
self.data[g].append(d[g][:])
+ d.close()
... | Close hdf files after usage (#<I>) | py |
diff --git a/elifearticle/parse.py b/elifearticle/parse.py
index <HASH>..<HASH> 100644
--- a/elifearticle/parse.py
+++ b/elifearticle/parse.py
@@ -128,8 +128,8 @@ def build_ref_list(refs):
ref.publication_type = reference.get('publication-type')
# Article title
- if reference.get('article... | Use the full_article_title from citations, includes inline tagging. | py |
diff --git a/geocoder/base.py b/geocoder/base.py
index <HASH>..<HASH> 100644
--- a/geocoder/base.py
+++ b/geocoder/base.py
@@ -170,7 +170,7 @@ class Base(object):
elif sys.version_info.major == 3:
if isinstance(value, str):
- return value.encode('utf-8')
+ ... | #<I> Remove encode from Python3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@
from glob import glob
from setuptools import setup
+import rtree
# Get text from README.txt
readme_text = file('docs/source/README.txt', 'rb').read()
@@ -16,7 +17,7 @@ else:
data_files = None
s... | get version from rtree.__version__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ PACKAGE_DATA = {'': ['*.pyx', '*.pxd', '*.txt', '*.tokens']}
PACKAGES = [
'spacy',
+ 'spacy.cli',
'spacy.tokens',
'spacy.en',
'spacy.de', | Add cli to setup.py | py |
diff --git a/testproject/testapp/tests/test_set_username.py b/testproject/testapp/tests/test_set_username.py
index <HASH>..<HASH> 100644
--- a/testproject/testapp/tests/test_set_username.py
+++ b/testproject/testapp/tests/test_set_username.py
@@ -29,6 +29,18 @@ class SetUsernameViewTest(
user.refresh_from_db()... | Add failing test for set_username endpoint. The current_password is ignored. | py |
diff --git a/salesforce/backend/operations.py b/salesforce/backend/operations.py
index <HASH>..<HASH> 100644
--- a/salesforce/backend/operations.py
+++ b/salesforce/backend/operations.py
@@ -13,7 +13,6 @@ import warnings
import django.db.backends.utils
from django.db.backends.base.operations import BaseDatabaseOperat... | Fixed regression with DefaultedOnCrate in DecimalField | py |
diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/valid.py
+++ b/openquake/hazardlib/valid.py
@@ -761,7 +761,7 @@ def intensity_measure_types_and_levels(value):
{'SA(0.1)': [0.1, 0.2]}
"""
dic = dictionary(value)
- for imt_st... | Small fix in valid.intensity_measure_types_and_levels | py |
diff --git a/tests/lax_numpy_test.py b/tests/lax_numpy_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_numpy_test.py
+++ b/tests/lax_numpy_test.py
@@ -1217,7 +1217,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):
{"testcase_name": "_shape={}_axis={}".format(
jtu.format_shape_dtype_string(shape, dt... | Restrict .compress tests to arrays only. (#<I>) Fixes test failures with <I> generated cases. | py |
diff --git a/satpy/readers/slstr_l1b.py b/satpy/readers/slstr_l1b.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/slstr_l1b.py
+++ b/satpy/readers/slstr_l1b.py
@@ -137,7 +137,7 @@ class NCSLSTR1B(BaseFileHandler):
self.platform_name = PLATFORM_NAMES[filename_info['mission_id']]
self.sensor = 'sls... | Use `isinstance` instead of `type` in the SLSTR radiance adjustment. | py |
diff --git a/salt/modules/capirca_acl.py b/salt/modules/capirca_acl.py
index <HASH>..<HASH> 100644
--- a/salt/modules/capirca_acl.py
+++ b/salt/modules/capirca_acl.py
@@ -131,7 +131,8 @@ _TERM_FIELDS = {
'flattened': False,
'flattened_addr': None,
'flattened_saddr': None,
- 'flattened_daddr': None
+ ... | Add priority field to support the latest capirca. | py |
diff --git a/tests/functional/test.py b/tests/functional/test.py
index <HASH>..<HASH> 100755
--- a/tests/functional/test.py
+++ b/tests/functional/test.py
@@ -138,7 +138,7 @@ def testBAS(fname, filter_ = None):
''' filter_ will be ignored for binary (tzx, tap, etc) files
'''
prep = ' -e /dev/null' if CLO... | Test now used -O1 by default. | py |
diff --git a/pyfolio/timeseries.py b/pyfolio/timeseries.py
index <HASH>..<HASH> 100644
--- a/pyfolio/timeseries.py
+++ b/pyfolio/timeseries.py
@@ -28,9 +28,6 @@ from .utils import DAILY, WEEKLY, MONTHLY, YEARLY, ANNUALIZATION_FACTORS
from .interesting_periods import PERIODS
-#####################################
-... | DOC Remove unnecessary comment about risk metrics. | py |
diff --git a/torchvision/prototype/transforms/functional/_geometry.py b/torchvision/prototype/transforms/functional/_geometry.py
index <HASH>..<HASH> 100644
--- a/torchvision/prototype/transforms/functional/_geometry.py
+++ b/torchvision/prototype/transforms/functional/_geometry.py
@@ -173,7 +173,7 @@ def affine_image_... | Remove center from PIL affine (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ def check_setuptools():
check_setuptools()
setup(name='instana',
- version='1.8.10',
+ version='1.8.11',
url='https://www.instana.com/',
project_urls={
'CI: Travis': 'https... | Bump package version to <I> | py |
diff --git a/tests/test_sanity.py b/tests/test_sanity.py
index <HASH>..<HASH> 100644
--- a/tests/test_sanity.py
+++ b/tests/test_sanity.py
@@ -143,25 +143,3 @@ def test_readme_example(resources, outdir):
del pdf.pages[-1]
assert len(pdf.pages) == 3
pdf.save(outdir / 'output.pdf')
-
-
-@pytest.mark.skipif... | Remove deadlock test Even when marked as skipped, It breaks the Windows build entirely, because pytest-timeout fails on Windows. | py |
diff --git a/pycbc/events/events.py b/pycbc/events/events.py
index <HASH>..<HASH> 100644
--- a/pycbc/events/events.py
+++ b/pycbc/events/events.py
@@ -427,6 +427,7 @@ class EventManager(object):
row.channel = channel
row.ifo = ifo
+ row.chisq = event['chisq']
# FI... | Add chisq back into code. This should have already been fixed on master | py |
diff --git a/fontbakery-check-ttf.py b/fontbakery-check-ttf.py
index <HASH>..<HASH> 100755
--- a/fontbakery-check-ttf.py
+++ b/fontbakery-check-ttf.py
@@ -2821,23 +2821,6 @@ def main():
##########################################################
# ----------------------------------------------------
- fb.new_... | remove redundante "Check for correct path direction"... ...as fontforge already checks that for us at ff_check("Contours have correct directions") | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,6 @@ setup(
license='MIT',
py_modules=["heroku_kafka"],
install_requires=[
- 'kafka-python==1.3.5',
+ 'kafka-python==1.4.6',
]
)
\ No newline at end of file | Update required kafka-python version | py |
diff --git a/selene/factory.py b/selene/factory.py
index <HASH>..<HASH> 100644
--- a/selene/factory.py
+++ b/selene/factory.py
@@ -5,7 +5,6 @@ from selenium.common.exceptions import UnexpectedAlertPresentException
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.firefox import GeckoDriv... | Delete PhantomJS calls as it is not supported | py |
diff --git a/tinyik/core.py b/tinyik/core.py
index <HASH>..<HASH> 100644
--- a/tinyik/core.py
+++ b/tinyik/core.py
@@ -12,7 +12,7 @@ from .optimizer import ScipyOptimizer
class Actuator(object):
"""Represents an actuator as a set of links and revolute joints."""
- def __init__(self, tokens, optimizer=ScipyOp... | Fix default optimizer not to be initialized unintentionally | py |
diff --git a/master/buildbot/www/hooks/bitbucketcloud.py b/master/buildbot/www/hooks/bitbucketcloud.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/www/hooks/bitbucketcloud.py
+++ b/master/buildbot/www/hooks/bitbucketcloud.py
@@ -145,7 +145,7 @@ class BitbucketCloudEventHandler:
'revlink': payload['pu... | Remove one more occurence of `username` field | py |
diff --git a/retask/queue.py b/retask/queue.py
index <HASH>..<HASH> 100644
--- a/retask/queue.py
+++ b/retask/queue.py
@@ -171,6 +171,8 @@ class Queue(object):
return None
data = self.rdb.rpop(self._name)
+ if not data:
+ return None
task = Task()
task.__dict_... | Queue.dequeue method returns None if no data found from Queue. | py |
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/plot.py
+++ b/holoviews/plotting/bokeh/plot.py
@@ -216,7 +216,7 @@ class GridPlot(BokehPlot, GenericCompositePlot):
else:
plots[r].append(None)
... | Fixed bokeh GridPlot, VBox and HBox based plots | py |
diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/pylint/__pkginfo__.py
+++ b/pylint/__pkginfo__.py
@@ -22,7 +22,7 @@
from os.path import join
# For an official release, use dev_version = None
-numversion = (2, 4, 1)
+numversion = (2, 4, 2)
dev_version = None
version =... | Bump master to <I> | py |
diff --git a/src/pyctools/components/io/videofilewriter2.py b/src/pyctools/components/io/videofilewriter2.py
index <HASH>..<HASH> 100644
--- a/src/pyctools/components/io/videofilewriter2.py
+++ b/src/pyctools/components/io/videofilewriter2.py
@@ -82,7 +82,7 @@ class VideoFileWriter2(Component):
}
codecs... | Force raw output format FFmpeg can't reliably guess the format as files tend to have extensions like .y<I> or .pal. | py |
diff --git a/tests/redisdl_test.py b/tests/redisdl_test.py
index <HASH>..<HASH> 100644
--- a/tests/redisdl_test.py
+++ b/tests/redisdl_test.py
@@ -4,6 +4,12 @@ import json
import os.path
class RedisdlTest(unittest.TestCase):
+ def setUp(self):
+ import redis
+ self.r = redis.Redis()
+ for ke... | Clear redis data store before running tests | py |
diff --git a/tests/test_pdf.py b/tests/test_pdf.py
index <HASH>..<HASH> 100644
--- a/tests/test_pdf.py
+++ b/tests/test_pdf.py
@@ -40,8 +40,8 @@ class InitTest(unittest.TestCase):
pdf.__init__("wrong")
def test_init_file_in_text_mode(self):
- text_file = io.StringIO("wrong")
- with sel... | Make tests support python 2 | py |
diff --git a/src/diamond/collector.py b/src/diamond/collector.py
index <HASH>..<HASH> 100644
--- a/src/diamond/collector.py
+++ b/src/diamond/collector.py
@@ -308,10 +308,10 @@ class Collector(object):
for handler in self.handlers:
handler._process(metric)
- def publish_counter(self, name, va... | Fix a typo and a logic bug with publish_gauge vs publish_counter | py |
diff --git a/cumulusci/core/config/project_config.py b/cumulusci/core/config/project_config.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/config/project_config.py
+++ b/cumulusci/core/config/project_config.py
@@ -266,13 +266,13 @@ class BaseProjectConfig(BaseTaskFlowConfig):
if path:
return ... | Debugging info for Windows/Github - 2 | py |
diff --git a/packages/vaex-jupyter/setup.py b/packages/vaex-jupyter/setup.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-jupyter/setup.py
+++ b/packages/vaex-jupyter/setup.py
@@ -14,7 +14,7 @@ author_email = 'maartenbreddels@gmail.com'
license = 'MIT'
version = version.__version__
url = 'https://www.github.com/m... | Release <I> of vaex-jupyter | py |
diff --git a/revision/__init__.py b/revision/__init__.py
index <HASH>..<HASH> 100644
--- a/revision/__init__.py
+++ b/revision/__init__.py
@@ -9,5 +9,5 @@
from __future__ import absolute_import
-__version__ = "0.0.8"
+__version__ = "0.1.0"
__license__ = "MIT" | chore(package): bump minor version | py |
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py
index <HASH>..<HASH> 100644
--- a/oauthlib/oauth1/rfc5849/__init__.py
+++ b/oauthlib/oauth1/rfc5849/__init__.py
@@ -115,16 +115,16 @@ class Client(object):
# I'm not sure how I feel about it.
if self.signature_type ... | Allow rendering of body signatures without supplied body params | py |
diff --git a/zappa/zappa.py b/zappa/zappa.py
index <HASH>..<HASH> 100644
--- a/zappa/zappa.py
+++ b/zappa/zappa.py
@@ -515,9 +515,12 @@ class Zappa(object):
# Related: https://github.com/Miserlou/Zappa/issues/682
os.chmod(os.path.join(root, filename), 0o755)
- # Actua... | Correct ZIP permissions when building on Windows This change puts the correct permission bits into the packaged ZIP even if the filesystem doesn't support Unix permissions (e.g. Windows). Also, the previous behavior of setting external_attr on the ZipFile object had no effect as the property is non-existent. | py |
diff --git a/rewind/rewind.py b/rewind/rewind.py
index <HASH>..<HASH> 100644
--- a/rewind/rewind.py
+++ b/rewind/rewind.py
@@ -154,7 +154,7 @@ class _LogBookRunner(object):
@contextlib.contextmanager
-def zmq_context_context(*args):
+def _zmq_context_context(*args):
"""A ZeroMQ context context that both const... | Rename `zmq_context_context` to `_zmq_context_context` The function is only used within a single module. This change make the code follow PEP8 guidelines better. | py |
diff --git a/bokeh/resources.py b/bokeh/resources.py
index <HASH>..<HASH> 100644
--- a/bokeh/resources.py
+++ b/bokeh/resources.py
@@ -14,12 +14,10 @@ from __future__ import absolute_import
import logging
logger = logging.getLogger(__name__)
-from os.path import join, relpath, splitext
+from os.path import join, re... | Remove unused imports from bokeh.resources | py |
diff --git a/src/cr/cube/cubepart.py b/src/cr/cube/cubepart.py
index <HASH>..<HASH> 100644
--- a/src/cr/cube/cubepart.py
+++ b/src/cr/cube/cubepart.py
@@ -930,7 +930,8 @@ class _Slice(CubePartition):
@lazyproperty
def table_std_dev(self):
- return np.array([row.table_std_dev for row in self._matrix.r... | rfctr: move _Slice.table_std_dev implementation Compute this in _Slice for now since it's easy and it will be relocated to a measure class shortly. No unit test since this is temporary and is covered by integration tests. | py |
diff --git a/app_namespace/tests/tests.py b/app_namespace/tests/tests.py
index <HASH>..<HASH> 100644
--- a/app_namespace/tests/tests.py
+++ b/app_namespace/tests/tests.py
@@ -132,3 +132,27 @@ class LoaderTestCase(TestCase):
self.assertTrue(mark in template_namespace)
self.assertTrue(mark_title in te... | Add a test for being sure about the {{ block.super }} behavior | py |
diff --git a/omxplayer/player.py b/omxplayer/player.py
index <HASH>..<HASH> 100644
--- a/omxplayer/player.py
+++ b/omxplayer/player.py
@@ -427,7 +427,7 @@ class OMXPlayer(object):
def quit(self):
logger.debug('Quitting OMXPlayer')
try:
- os.killpg(self._process.pid, signal.SIGTERM)
+ ... | Changed SIGTERM to SIGINT Changed how the omxplayer is quit. This solves the freezing console bug. | py |
diff --git a/perceval/backends/core/rss.py b/perceval/backends/core/rss.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/core/rss.py
+++ b/perceval/backends/core/rss.py
@@ -31,6 +31,7 @@ from ...backend import (Backend,
metadata)
from ...errors import CacheError
from ...utils import str... | [rss] Add User-Agent header in RSS requests Some sites like wordpress.com blog requires the User-Agent header to provide access to data. Backend version updated to <I> [rss] Add version to user agent header. Increse version of the backend to <I>. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -48,6 +48,8 @@ def handle_raw_out(event):
@reactor.handler('in', 'pubmsg')
@reactor.handler('in', 'privmsg')
def handle_hi(event):
+ if event['source'].is_me:
+ return
if event['message'].lower().startswith('hi')... | test: Don't reply to my own echo-messages | py |
diff --git a/master/buildbot/buildslave.py b/master/buildbot/buildslave.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/buildslave.py
+++ b/master/buildbot/buildslave.py
@@ -913,7 +913,7 @@ class AbstractLatentBuildSlave(AbstractBuildSlave):
def _setBuildWaitTimer(self):
self._clearBuildWaitTimer()... | Don't set build wait timer if build_wait_timeout>0 | py |
diff --git a/samples/getinfo.py b/samples/getinfo.py
index <HASH>..<HASH> 100755
--- a/samples/getinfo.py
+++ b/samples/getinfo.py
@@ -137,8 +137,9 @@ if __name__ == '__main__':
if len(slots) == 0:
sys.exit(2)
- if slot:
+ if slot is not None:
slots = [slots[slot]]
+ print("Using s... | samples/getinfo.py: fix --slot= paramater slot 0 was not correctly handled and was considered as if not slot was specified. | py |
diff --git a/doc/_ext/lit_code.py b/doc/_ext/lit_code.py
index <HASH>..<HASH> 100644
--- a/doc/_ext/lit_code.py
+++ b/doc/_ext/lit_code.py
@@ -76,8 +76,10 @@ class LiterateCoding(Directive):
config = self.state.document.settings.env.config
lines = parse_sls_file(config, self.arguments[0])
- n... | Wrap the literate-coding elements in a container Needed for the necessary left-right styling. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
"""Rachiopy setup script."""
from setuptools import setup
-version = '0.2.0-dev'
+version = '0.1.4'
github_username = 'rfverbruggen'
github_repository = 'rachiopy' | Update setup.py with the correct version number | py |
diff --git a/test_util.py b/test_util.py
index <HASH>..<HASH> 100644
--- a/test_util.py
+++ b/test_util.py
@@ -1,6 +1,6 @@
from unittest import TestCase
-from framework import SimulationModule
+from engine import SimulationModule
from util import sort_modules
class AModule(SimulationModule): | Second commit for test_util because I don't remember how git's staging area works, apparently | py |
diff --git a/fontaine/builder.py b/fontaine/builder.py
index <HASH>..<HASH> 100644
--- a/fontaine/builder.py
+++ b/fontaine/builder.py
@@ -161,7 +161,8 @@ class Director(object):
desc['orthographies'].append(orth)
font_charactersets_names.append(charsetinfo.charset.common_name)
- ... | check if there is no orthofraphy | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
#
# ESP8266 ROM Bootloader Utility
# https://github.com/themadinventor/esptool | changed shebang line as python2 does not work on MacOS | py |
diff --git a/python/ray/tune/logger.py b/python/ray/tune/logger.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/logger.py
+++ b/python/ray/tune/logger.py
@@ -154,11 +154,13 @@ def tf2_compat_logger(config, logdir):
class TF2Logger(Logger):
def _init(self):
- from tensorflow.python.eager import conte... | Lazily create summary writer for TF2 logger. (#<I>) | py |
diff --git a/pifpaf/drivers/keystone.py b/pifpaf/drivers/keystone.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/keystone.py
+++ b/pifpaf/drivers/keystone.py
@@ -81,7 +81,7 @@ connection = sqlite:///%s/sqlite.db
"--port", str(self.port),
"--",
"--config-file", conffile],
-... | keystone: simplify wait_for_line The value of the IP actually depends on IP address and OS, so be more liberal. | py |
diff --git a/visidata/threads.py b/visidata/threads.py
index <HASH>..<HASH> 100644
--- a/visidata/threads.py
+++ b/visidata/threads.py
@@ -235,10 +235,13 @@ def checkForFinishedThreads(self):
@VisiData.api
def sync(self, *joiningThreads):
'Wait for joiningThreads to finish. If no joiningThreads specified, wait f... | [threads] check to see if thread is_alive before joining it | py |
diff --git a/charmhelpers/contrib/storage/linux/ceph.py b/charmhelpers/contrib/storage/linux/ceph.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/storage/linux/ceph.py
+++ b/charmhelpers/contrib/storage/linux/ceph.py
@@ -377,12 +377,12 @@ def get_mon_map(service):
try:
return json.loads(... | Fix up ceph library exception logging for py3 (#<I>) It used "e.message", which py3 doesn't have. Thus, this uses str(e) which works on both py2 and py3. | py |
diff --git a/netauth/templatetags/netauth_tags.py b/netauth/templatetags/netauth_tags.py
index <HASH>..<HASH> 100644
--- a/netauth/templatetags/netauth_tags.py
+++ b/netauth/templatetags/netauth_tags.py
@@ -2,7 +2,7 @@ from django.conf import settings as django_settings
from django.template import Library, Token, TOKE... | add tags to show signs if user already registred on this provider | py |
diff --git a/examples/py/coinone-markets.py b/examples/py/coinone-markets.py
index <HASH>..<HASH> 100644
--- a/examples/py/coinone-markets.py
+++ b/examples/py/coinone-markets.py
@@ -10,9 +10,10 @@ sys.path.append(root + '/python')
import ccxt # noqa: E402
exchange = ccxt.coinone({
- 'verbose': True, # switch ... | examples/py/coinone-markets.py edits | py |
diff --git a/aploader/management/commands/reup_to_db.py b/aploader/management/commands/reup_to_db.py
index <HASH>..<HASH> 100644
--- a/aploader/management/commands/reup_to_db.py
+++ b/aploader/management/commands/reup_to_db.py
@@ -203,6 +203,9 @@ class Command(BaseCommand):
vote_update["winning"] = WINNER
... | set called in ap loader | py |
diff --git a/zeno/test/test_client.py b/zeno/test/test_client.py
index <HASH>..<HASH> 100644
--- a/zeno/test/test_client.py
+++ b/zeno/test/test_client.py
@@ -20,7 +20,8 @@ F = getMaxFailures(nodeCount)
whitelist = ['signer not configured so not signing',
'for EmptySignature',
- 'discarding... | Fixing an intermittently failing test by whitelisting a log statement | py |
diff --git a/tests/resources/test_multipartycalls.py b/tests/resources/test_multipartycalls.py
index <HASH>..<HASH> 100644
--- a/tests/resources/test_multipartycalls.py
+++ b/tests/resources/test_multipartycalls.py
@@ -184,7 +184,9 @@ class MultiPartyCallsTest(PlivoResourceTestCase):
'confirm_key_sound_met... | VT-<I> Added few changes in UTs | py |
diff --git a/nodeconductor/cloud/perms.py b/nodeconductor/cloud/perms.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/cloud/perms.py
+++ b/nodeconductor/cloud/perms.py
@@ -18,4 +18,12 @@ PERMISSION_LOGICS = (
any_permission=True,
)),
+ ('cloud.CloudProjectMembership', FilteredCollaboratorsPermissi... | permissions for CloudProjectMembership added | py |
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -798,9 +798,9 @@ class Plugin(object):
if stat.S_ISDIR(st.st_mode) and os.access(srcpath, os.R_OK):
# copy empty directory
... | [Plugin] fix destination paths in _do_copy_path() The path used to copy special device nodes and directories in _do_copy_path() should be the destination path in the archive (without sysroot prefix), and not the source path in the host file system that includes this prefix. Related: #<I> | py |
diff --git a/filer/test_utils/cli.py b/filer/test_utils/cli.py
index <HASH>..<HASH> 100644
--- a/filer/test_utils/cli.py
+++ b/filer/test_utils/cli.py
@@ -9,7 +9,6 @@ def configure(**extra):
from django.conf import settings
os.environ['DJANGO_SETTINGS_MODULE'] = 'filer.test_utils.cli'
defaults = dict(
- ... | Removed some deprecated Django settings. | py |
diff --git a/Setup/Run_Once.py b/Setup/Run_Once.py
index <HASH>..<HASH> 100644
--- a/Setup/Run_Once.py
+++ b/Setup/Run_Once.py
@@ -11,7 +11,6 @@ except Exception as Ex:
try:
r.db_create("Plugins").run()
- r.db("Plugins").table_create("plugin_A").run()
except Exception as Ex:
print (Ex)
@@ -19,7 +18,7 @@ exce... | Update to setup Make Changes to the run_once file based upon Luke's comments | py |
diff --git a/pyzenobase/tests/tests.py b/pyzenobase/tests/tests.py
index <HASH>..<HASH> 100644
--- a/pyzenobase/tests/tests.py
+++ b/pyzenobase/tests/tests.py
@@ -75,5 +75,15 @@ class ZenobaseTests(unittest.TestCase):
self.zapi.delete_bucket(self.bucket_id)
self.zapi.close()
+
+class ExampleTest(uni... | Added test for README example | py |
diff --git a/gary/conftest.py b/gary/conftest.py
index <HASH>..<HASH> 100644
--- a/gary/conftest.py
+++ b/gary/conftest.py
@@ -11,9 +11,12 @@ def pytest_configure(config):
import logging
from astropy import log as logger
- if config.getoption('verbose'):
+ if config.getoption('verbose') == 2:
... | add command line option support svvvv | py |
diff --git a/salt/engines/stalekey.py b/salt/engines/stalekey.py
index <HASH>..<HASH> 100644
--- a/salt/engines/stalekey.py
+++ b/salt/engines/stalekey.py
@@ -51,7 +51,7 @@ def _get_keys():
def start(interval=3600, expire=604800):
ck = salt.utils.minions.CkMinions(__opts__)
- presence_file = '{0}/minions/pre... | Create presence.p directly in cachedir salt-key was stacktracing when finding the presence.p file in /var/cache/salt/master/minions | py |
diff --git a/tests/unit/test_ticketed_features.py b/tests/unit/test_ticketed_features.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_ticketed_features.py
+++ b/tests/unit/test_ticketed_features.py
@@ -923,3 +923,51 @@ import os
import os
"""
)
+
+
+def test_indented_import_headings_issue_1604():
+ """Te... | Add test for #<I>: allow toggling section header in indented imports | py |
diff --git a/benchexec/tools/impara.py b/benchexec/tools/impara.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/impara.py
+++ b/benchexec/tools/impara.py
@@ -45,8 +45,6 @@ class Tool(benchexec.tools.template.BaseTool):
def cmdline(self, executable, options, tasks, propertyfile, rlimits):
if ("--xml-u... | removed eager option from impara.py script | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -309,8 +309,12 @@ def init(access_token, environment='production', **kw):
ScrubUrlTransform(suffixes=[(field,) for field in SETTINGS['url_fields']], params_to_scrub=SETTINGS... | Shorten top level request.POST and request.json | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ SOURCE_DIR = os.path.abspath('./')
DEFAULT_THEME =\
- 'https://people.collabora.com/~meh/hotdoc_bootstrap_theme/dist.tgz'
+ 'https://people.collabora.com/~meh/hotdoc_bootstrap_theme-0.6.6/dist.tgz'
... | From now on we will checkout a versioned default theme | py |
diff --git a/Lib/booleanOperations/flatten.py b/Lib/booleanOperations/flatten.py
index <HASH>..<HASH> 100644
--- a/Lib/booleanOperations/flatten.py
+++ b/Lib/booleanOperations/flatten.py
@@ -973,15 +973,17 @@ class OutputContour(object):
points.extend(segment.points)
hasOnCurve = False
- ... | [flatten] if > 1 starting points, use closest to origin When merging two or more contours, there could be more than one possible original starting points to be restored. Here we choose the one that is closest to the origin. | py |
diff --git a/Tank/Plugins/PhantomUtils.py b/Tank/Plugins/PhantomUtils.py
index <HASH>..<HASH> 100644
--- a/Tank/Plugins/PhantomUtils.py
+++ b/Tank/Plugins/PhantomUtils.py
@@ -248,7 +248,6 @@ class StreamConfig:
self.stpd = self.stepper_wrapper.stpd
if self.stepper_wrapper.instances:
self.... | remove warning about instances redefinition (it's not a redifinition, actually) | py |
diff --git a/rinoh/frontend/docbook/__init__.py b/rinoh/frontend/docbook/__init__.py
index <HASH>..<HASH> 100644
--- a/rinoh/frontend/docbook/__init__.py
+++ b/rinoh/frontend/docbook/__init__.py
@@ -28,6 +28,7 @@ class DocBookInlineNode(DocBookNode, ElementTreeInlineNode):
class DocBookBodyNode(DocBookNode, ElementTre... | Extract common frontend code (8) Adapt the DITA frontend to the new base classes | py |
diff --git a/salt/states/pcs.py b/salt/states/pcs.py
index <HASH>..<HASH> 100644
--- a/salt/states/pcs.py
+++ b/salt/states/pcs.py
@@ -6,6 +6,8 @@ Management of Pacemaker/Corosync clusters with PCS
A state module to manage Pacemaker/Corosync clusters
with the Pacemaker/Corosync configuration system(PCS)
+.. version... | Add version tag to new pcs state module (#<I>) | py |
diff --git a/tickets/views.py b/tickets/views.py
index <HASH>..<HASH> 100644
--- a/tickets/views.py
+++ b/tickets/views.py
@@ -1,7 +1,8 @@
from django.views.generic import ListView, DetailView, CreateView
from django.core.urlresolvers import reverse
+from django.contrib import messages
-from forms import TicketCrea... | improve my ticket detail view to handle post requests with creating ticket comments | py |
diff --git a/saspy/sasbase.py b/saspy/sasbase.py
index <HASH>..<HASH> 100644
--- a/saspy/sasbase.py
+++ b/saspy/sasbase.py
@@ -522,7 +522,7 @@ class SASsession():
except KeyError:
pyenc = None
print("Invalid response from SAS on inital submission. printing the SASLOG as diagnostic")
- ... | catch encoding lookup error, as SAS failed somehow if that happened; print log to see why | py |
diff --git a/zinnia/templatetags/zinnia.py b/zinnia/templatetags/zinnia.py
index <HASH>..<HASH> 100644
--- a/zinnia/templatetags/zinnia.py
+++ b/zinnia/templatetags/zinnia.py
@@ -347,7 +347,8 @@ def zinnia_positional_template(context, default_template):
context_object = context.get('category') or \
... | Apply specific templates for week and pattern context object | py |
diff --git a/pyairtable/__init__.py b/pyairtable/__init__.py
index <HASH>..<HASH> 100644
--- a/pyairtable/__init__.py
+++ b/pyairtable/__init__.py
@@ -1,3 +1,3 @@
-__version__ = "1.0.0.rc5"
+__version__ = "1.0.0.rc6"
from .api import Api, Base, Table # noqa | Publish version <I>.rc6 | py |
diff --git a/jarn/mkrelease/process.py b/jarn/mkrelease/process.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/process.py
+++ b/jarn/mkrelease/process.py
@@ -13,9 +13,10 @@ class Process(object):
rc_keyboard_interrupt = 54321
- def __init__(self, quiet=False, env=None):
+ def __init__(self, quiet=Fa... | Allow to pass a runner to Process. | py |
diff --git a/tests/test_stateful_browser.py b/tests/test_stateful_browser.py
index <HASH>..<HASH> 100644
--- a/tests/test_stateful_browser.py
+++ b/tests/test_stateful_browser.py
@@ -160,6 +160,11 @@ def test_launch_browser(mocker):
browser.follow_link('nosuchlink')
# mock.assert_called_once() not availab... | test select_form()'s debug mode | py |
diff --git a/py/test/selenium/webdriver/common/api_examples.py b/py/test/selenium/webdriver/common/api_examples.py
index <HASH>..<HASH> 100644
--- a/py/test/selenium/webdriver/common/api_examples.py
+++ b/py/test/selenium/webdriver/common/api_examples.py
@@ -177,9 +177,6 @@ class ApiExampleTest (unittest.TestCase):
... | DavidBurns updating test to desired behavior for getattribute of href r<I> | py |
diff --git a/yandextank/core/consoleworker.py b/yandextank/core/consoleworker.py
index <HASH>..<HASH> 100644
--- a/yandextank/core/consoleworker.py
+++ b/yandextank/core/consoleworker.py
@@ -450,7 +450,7 @@ class CompletionHelperOptionParser(OptionParser):
if options.list_options_cur or options.list_options_... | fixed refactored method usage | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -161,7 +161,7 @@ html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
- 'index': 'indexsidebar.html',
+ 'index': ['indexsidebar.html'],
... | Adapt conf.py for sphinx >= <I> html_sidebars dict values must now be a list. Resolves a TemplateNotFound exception raised when building the documentation with sphinx <I>, as encountered when building the Debian packages. <URL> | py |
diff --git a/animanager/sqlbuilder/expr.py b/animanager/sqlbuilder/expr.py
index <HASH>..<HASH> 100644
--- a/animanager/sqlbuilder/expr.py
+++ b/animanager/sqlbuilder/expr.py
@@ -18,7 +18,7 @@
from .base import SQLBuilder
from .tokens import Tokens
-__all__ = ['Identifier']
+__all__ = ['BinaryOp', 'Identifier']
... | Add BinaryOp to __all__ | py |
diff --git a/py/test/rsession/testing/test_hostmanage.py b/py/test/rsession/testing/test_hostmanage.py
index <HASH>..<HASH> 100644
--- a/py/test/rsession/testing/test_hostmanage.py
+++ b/py/test/rsession/testing/test_hostmanage.py
@@ -202,8 +202,8 @@ class TestHostManager(DirSetup):
dir2 = self.source.ensure("... | [svn r<I>] looponfailing tricked me into committing too early (syntax error, bah) --HG-- branch : trunk | py |
diff --git a/swauth/middleware.py b/swauth/middleware.py
index <HASH>..<HASH> 100644
--- a/swauth/middleware.py
+++ b/swauth/middleware.py
@@ -151,9 +151,10 @@ class Swauth(object):
# user's key
self.auth_type = conf.get('auth_type', 'Plaintext').title()
self.auth_encoder = getattr(swauth.aut... | Raise an exception when the user-specified auth_type is not found | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,6 +56,8 @@ setup(
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
+ 'Programming Language :: Python :: 3.7',
+ ... | Added more classifiers. Since grpcio is used, PyPy isn't supported. Also, we do support <I>. | py |
diff --git a/src/umbra/components/addins/tcpClientUi/tcpClientUi.py b/src/umbra/components/addins/tcpClientUi/tcpClientUi.py
index <HASH>..<HASH> 100644
--- a/src/umbra/components/addins/tcpClientUi/tcpClientUi.py
+++ b/src/umbra/components/addins/tcpClientUi/tcpClientUi.py
@@ -701,7 +701,7 @@ class TCPClientUi(QWidget... | Add support for raw connection end strings in "tcpClientUi" component. | py |
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -12,8 +12,11 @@ def dep_reg():
@pytest.fixture(scope='function')
def mock_dep_reg():
- return unittest.mock.NonCallableMock(
+ mock_dep_reg = unittest.mock.NonC... | tests: Adds fake attributes to mock DependencyRegister fixture | py |
diff --git a/demos/dlgr/demos/bartlett1932/experiment.py b/demos/dlgr/demos/bartlett1932/experiment.py
index <HASH>..<HASH> 100644
--- a/demos/dlgr/demos/bartlett1932/experiment.py
+++ b/demos/dlgr/demos/bartlett1932/experiment.py
@@ -6,6 +6,7 @@ from selenium.webdriver.common.by import By
from selenium.common.excepti... | Don't get stuck if the initial recruitment changes or a user doesn't complete | py |
diff --git a/user.py b/user.py
index <HASH>..<HASH> 100644
--- a/user.py
+++ b/user.py
@@ -28,3 +28,6 @@ class User(CanvasObject):
'users/%s/page_views' % (self.id)
)
return response.json()
+
+ def __str__(self):
+ return "%s" % (self.name) | added basic __str__ method for users | py |
diff --git a/client/ledis-py/ledis/client.py b/client/ledis-py/ledis/client.py
index <HASH>..<HASH> 100644
--- a/client/ledis-py/ledis/client.py
+++ b/client/ledis-py/ledis/client.py
@@ -238,14 +238,6 @@ class Ledis(object):
"Ping the Ledis server"
return self.execute_command('PING')
- def select... | remove select cmd because of conn pool | py |
diff --git a/timezones/fields.py b/timezones/fields.py
index <HASH>..<HASH> 100644
--- a/timezones/fields.py
+++ b/timezones/fields.py
@@ -19,11 +19,8 @@ assert(reduce(lambda x, y: x and (len(y) <= MAX_TIMEZONE_LENGTH),
class TimeZoneField(models.CharField):
- def __init__(self, max_length=None, *args, **kwdarg... | Not really sure why there was a problem. git-svn-id: <URL> | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -430,16 +430,20 @@ class Party(object):
.. rubric:: Examples
Plot cumulative detections for all templates individu... | extra row between formatted code in examples and plain tex | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.