diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/geocoder/osm.py b/geocoder/osm.py
index <HASH>..<HASH> 100644
--- a/geocoder/osm.py
+++ b/geocoder/osm.py
@@ -43,11 +43,15 @@ class Osm(Base):
@property
def lat(self):
- return self.parse.get('lat')
+ lat = self.parse.get('lat')
+ if lat:
+ return float(lat)
... | Convert to Float Lat & Lng for OSM | py |
diff --git a/models/phase3_eval/process_sparser.py b/models/phase3_eval/process_sparser.py
index <HASH>..<HASH> 100644
--- a/models/phase3_eval/process_sparser.py
+++ b/models/phase3_eval/process_sparser.py
@@ -5,7 +5,7 @@ import glob
from indra import sparser
base_folder = os.path.join(os.environ['HOME'],
- ... | Update Sparser script for phase3 | py |
diff --git a/HydraServer/python/HydraServer/soap_server/hydra_complexmodels.py b/HydraServer/python/HydraServer/soap_server/hydra_complexmodels.py
index <HASH>..<HASH> 100644
--- a/HydraServer/python/HydraServer/soap_server/hydra_complexmodels.py
+++ b/HydraServer/python/HydraServer/soap_server/hydra_complexmodels.py
@... | #<I>: Include status in get_projects. | py |
diff --git a/spatialist/raster.py b/spatialist/raster.py
index <HASH>..<HASH> 100644
--- a/spatialist/raster.py
+++ b/spatialist/raster.py
@@ -74,7 +74,11 @@ class Raster(object):
else:
self.bandnames = ['band{}'.format(x) for x in range(1, self.bands + 1)]
elif self.forma... | [Raster] fixed bug in setting band names of VRT files | py |
diff --git a/proselint/checks/garner/denizen_labels.py b/proselint/checks/garner/denizen_labels.py
index <HASH>..<HASH> 100644
--- a/proselint/checks/garner/denizen_labels.py
+++ b/proselint/checks/garner/denizen_labels.py
@@ -14,7 +14,7 @@ categories: writing
Denizen labels.
"""
-from proselint.tools import memoiz... | Clean up and extend denizen labels check | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
'psycopg2>=2.5.2',
'rfxcom>=0.1.0',
'simplejson>=3.3.3',
- 'SQLAlchemy>=0.9.3',
+ 'SQLAlchemy>=0.9.4',
],
include_package_data=True,
platforms='any'... | Bump minimum sqlalchemy version after an alembic issue. | py |
diff --git a/pydle/features/ctcp.py b/pydle/features/ctcp.py
index <HASH>..<HASH> 100644
--- a/pydle/features/ctcp.py
+++ b/pydle/features/ctcp.py
@@ -2,7 +2,7 @@
# Client-to-Client-Protocol (CTCP) support.
import pydle.protocol
from pydle.features import rfc1459
-
+from pydle import client
__all__ = [ 'CTCPSupport... | Resolved missing client import in ctcp | py |
diff --git a/mobly/controllers/android_device_lib/event_dispatcher.py b/mobly/controllers/android_device_lib/event_dispatcher.py
index <HASH>..<HASH> 100644
--- a/mobly/controllers/android_device_lib/event_dispatcher.py
+++ b/mobly/controllers/android_device_lib/event_dispatcher.py
@@ -12,7 +12,7 @@
# See the License ... | Remove importing class from modules. (#<I>) Use import statements for packages and modules only, not for individual classes or functions. Reference: <URL> | py |
diff --git a/amqplib/client_0_8.py b/amqplib/client_0_8.py
index <HASH>..<HASH> 100644
--- a/amqplib/client_0_8.py
+++ b/amqplib/client_0_8.py
@@ -264,6 +264,8 @@ class Connection(object):
if ch != 0xce:
raise Exception('Framing error, unexpected byte: %x' % ch)
+ if DEBUG:
+ p... | Found that connection exceptions weren't actually being raised as Python exceptions. Put a hack in to make this work, but the whole area of processing incoming frames is a bit whacked and should be rethought. | py |
diff --git a/script/create-dist.py b/script/create-dist.py
index <HASH>..<HASH> 100755
--- a/script/create-dist.py
+++ b/script/create-dist.py
@@ -191,7 +191,7 @@ def create_dist_zip():
with scoped_cwd(DIST_DIR):
files = TARGET_BINARIES[TARGET_PLATFORM] + ['LICENSE', 'version']
if TARGET_PLATFORM == 'linu... | Verify whether the file exists before including it in zip | py |
diff --git a/trafaret/__init__.py b/trafaret/__init__.py
index <HASH>..<HASH> 100644
--- a/trafaret/__init__.py
+++ b/trafaret/__init__.py
@@ -33,7 +33,7 @@ Look at doctests for usage examples
__all__ = ("DataError", "Trafaret", "Any", "Int", "String",
"List", "Dict", "Or", "Null", "Float", "Enum", "Call... | Add "Key" to __all__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,19 +1,23 @@
-
# python setup.py --dry-run --verbose install
from distutils.core import setup
-
setup(
name='lnetatmo',
- version='0.5.0', # Should be updated with new versions
+ version='1.2.1',
+ class... | Updated status.py with <I> release | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100644
--- a/build.py
+++ b/build.py
@@ -6,6 +6,7 @@ use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
+use_plugin('copy_resources')
use_plugin("python.integrationtest") | PIO-<I> plugin needed | py |
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py
index <HASH>..<HASH> 100644
--- a/cleverhans/attacks.py
+++ b/cleverhans/attacks.py
@@ -2127,7 +2127,8 @@ class Noise(Attack):
eta = tf.random_uniform(tf.shape(x), -self.eps, self.eps,
dtype=self.tf_dtype)
adv_x = x + eta
... | raise an error if someone attempts one-sided clipping | py |
diff --git a/scout/adapter/mongo/managed_variant.py b/scout/adapter/mongo/managed_variant.py
index <HASH>..<HASH> 100644
--- a/scout/adapter/mongo/managed_variant.py
+++ b/scout/adapter/mongo/managed_variant.py
@@ -1,9 +1,13 @@
import logging
from datetime import datetime
+from pymongo.errors import DuplicateKeyErr... | Flake8-detected missing imports | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -46,6 +46,16 @@ _DFLT_LOG_FMT_LOGFILE = (
'%(asctime)s,%(msecs)03.0f [%(name)-17s][%(levelname)-8s][%(process)d] %(message)s'
)
+if salt.utils.is_windows():
+ # Since an 'ipc_mode' of 'ipc' w... | add windows specfic default for multiprocessing multiprocessing has to be set to false on windows and should be done automatically like it is done with ipc_mode | py |
diff --git a/sgp4/__init__.py b/sgp4/__init__.py
index <HASH>..<HASH> 100644
--- a/sgp4/__init__.py
+++ b/sgp4/__init__.py
@@ -546,6 +546,13 @@ https://pypi.org/project/sgp4/1.4/
Changelog
---------
+| 2021-04-? — 2.19
+
+* Extended the documentation on the Python Package Index and in the
+ module docstring to off... | Start a changelog entry for the next version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,8 @@ from setuptools import setup, find_packages
dev_requires = [
- 'Sphinx==1.2.2'
+ 'Sphinx==1.2.2',
+ 'stevedore==1.4.0',
]
tests_requires = [
@@ -47,7 +48,6 @@ install_requires = [
'redis==2.... | Move stevedore under dev requirements | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
# required = f.read().splitlines()
setup(name='servicemanager',
- version='0.0.22',
+ version='0.0.23',
description='A python tool to manage developing and test... | Incrementing build. <I> was a dud due to deployment issues with pypi | py |
diff --git a/data.py b/data.py
index <HASH>..<HASH> 100644
--- a/data.py
+++ b/data.py
@@ -3,24 +3,24 @@ from decimal import *
import os.path
class Data():
+ CATEGORY = 0
+ CATEGORY_INDEX = 0
+ CATEGORY_TEXT = 1
- def __init__(self):
- #Indexes for data arrays
- self.CATEGORY = 0
- ... | Moved class level variables out of instance | py |
diff --git a/superset/connectors/druid/models.py b/superset/connectors/druid/models.py
index <HASH>..<HASH> 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -116,7 +116,9 @@ class DruidCluster(Model, AuditMixinNullable, ImportMixin):
def get_base_url(host, port):
... | Make port number optional in superset for druid (#<I>) * Make port number optional in superset for druid It appears that urllib throws error with ssl if port number is provided ``` url = "<URL> res = urllib.request.urlopen(req) ``` The above call fails with the following error: ``` urllib2.HTTP... | py |
diff --git a/flask_socketio/cli.py b/flask_socketio/cli.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/cli.py
+++ b/flask_socketio/cli.py
@@ -48,10 +48,6 @@ def run(info, host, port, reload, debugger, eager_loading, with_threads):
print(' * Serving Flask-SocketIO app "%s"' % info.app_import_path)
... | undoing fix for #<I> as it breaks the reloader for regular apps | py |
diff --git a/svgpathtools/svg2paths.py b/svgpathtools/svg2paths.py
index <HASH>..<HASH> 100644
--- a/svgpathtools/svg2paths.py
+++ b/svgpathtools/svg2paths.py
@@ -28,8 +28,8 @@ def polyline2pathd(polyline_d):
def ellipse2pathd(ellipse):
- """converts the parameters from an ellipse or a circle to a string for a ... | fixed typo and long line in docstrings | py |
diff --git a/backend.py b/backend.py
index <HASH>..<HASH> 100644
--- a/backend.py
+++ b/backend.py
@@ -185,12 +185,14 @@ class LDAPObject(object):
def leave_transaction_management(self):
""" End a transaction. Must not be dirty when doing so. ie. commit() or
- rollback() must be called if changes... | Discard dirty changes if leaving transaction as well as throw exception. | py |
diff --git a/qcore/events.py b/qcore/events.py
index <HASH>..<HASH> 100644
--- a/qcore/events.py
+++ b/qcore/events.py
@@ -22,6 +22,7 @@ import inspect
import six
from .enum import EnumType, EnumBase
+from .errors import prepare_for_reraise, reraise
class EventHook(object):
@@ -68,9 +69,10 @@ class EventHook(o... | qcore: reraise with meaningful tracebacks | py |
diff --git a/salt/log/setup.py b/salt/log/setup.py
index <HASH>..<HASH> 100644
--- a/salt/log/setup.py
+++ b/salt/log/setup.py
@@ -749,7 +749,6 @@ def get_multiprocessing_logging_queue():
global __MP_LOGGING_QUEUE
if __MP_LOGGING_QUEUE is None:
- # We only instantiate a new multiprocessing Queue if w... | Explain why we need the time.sleep | py |
diff --git a/test/augmenters/test_geometric.py b/test/augmenters/test_geometric.py
index <HASH>..<HASH> 100644
--- a/test/augmenters/test_geometric.py
+++ b/test/augmenters/test_geometric.py
@@ -3095,19 +3095,19 @@ def test_PerspectiveTransform():
img = np.ones((256, 256, 3), dtype=np.uint8) * 255
aug = iaa.P... | Fixed rewrite original image in PerspectiveTransform cval and mode tests. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -86,10 +86,15 @@ def check_compiler(compiler, extensions, compiler_name):
compiler_found = True
# https://stackoverflow.com/questions/19774778/when-is-it-necessary-to-use-use-the-flag-stdlib-libstdc
- ... | Another try to fix mac os x travis compilation. | py |
diff --git a/hydra_base/lib/users.py b/hydra_base/lib/users.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/users.py
+++ b/hydra_base/lib/users.py
@@ -91,7 +91,7 @@ def add_user(user,**kwargs):
if user_id is not None:
raise HydraError("User %s already exists!"%user.username)
- u.password = bcrypt... | Allow numerical-only passwords (cherry picked from commit a<I>a5b<I>bc<I>bc<I>a0deeb<I>ca<I>d6) | py |
diff --git a/tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py b/tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py
index <HASH>..<HASH> 100755
--- a/tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py
+++ b/tests/unit/nupic/frameworks/opf/common_models/cluster_para... | unit test added for invalid tmImplementation | py |
diff --git a/troposphere/apigateway.py b/troposphere/apigateway.py
index <HASH>..<HASH> 100644
--- a/troposphere/apigateway.py
+++ b/troposphere/apigateway.py
@@ -174,7 +174,7 @@ class DomainName(AWSObject):
resource_type = "AWS::ApiGateway::DomainName"
props = {
- "CertificateArn": (basestring, True... | ApiGateway::DomainName CertificateArn fix (#<I>) - Remove CertificateArn requirement from ApiGateway:DomainName to deploy ApiGateway REGION deployment w/ssl | py |
diff --git a/salt/log.py b/salt/log.py
index <HASH>..<HASH> 100644
--- a/salt/log.py
+++ b/salt/log.py
@@ -138,7 +138,7 @@ class LoggingMixInMeta(type):
)
-class __NewStyleClassMixIn(object):
+class _NewStyleClassMixIn(object):
'''
Simple new style class to make pylint shut up!
This is requi... | one underscore is sufficient: __NewStyleClassMixIn => _NewStyleClassMixIn | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ install_requires = [
setup(
name='nodeconductor',
- version='0.71.0',
+ version='0.72.0',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/openn... | Preparing new release: <I> | py |
diff --git a/runtime/tests/test_interop.py b/runtime/tests/test_interop.py
index <HASH>..<HASH> 100644
--- a/runtime/tests/test_interop.py
+++ b/runtime/tests/test_interop.py
@@ -356,6 +356,7 @@ class Netty(Integration):
self.m2_repo.ensure(dir=1)
context = dict(
quark_netty_version = sel... | Parse netty integration package name from pom.xml | py |
diff --git a/pywb/webagg/fuzzymatcher.py b/pywb/webagg/fuzzymatcher.py
index <HASH>..<HASH> 100644
--- a/pywb/webagg/fuzzymatcher.py
+++ b/pywb/webagg/fuzzymatcher.py
@@ -162,8 +162,12 @@ class FuzzyMatcher(object):
if not rule.match_filters:
return True
+ mime = cdx.get('mime')
+ ... | fuzzymatcher: better fix for mime-type matching if no mime | py |
diff --git a/djpaypal/models/webhooks.py b/djpaypal/models/webhooks.py
index <HASH>..<HASH> 100644
--- a/djpaypal/models/webhooks.py
+++ b/djpaypal/models/webhooks.py
@@ -117,7 +117,7 @@ class WebhookEventTrigger(models.Model):
@property
def transmission_sig(self):
- return self.headers.get("Paypal-Transmission-... | Fix WebhookEventTrigger.transmission_sig | py |
diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/integration/conftest.py
+++ b/tests/integration/conftest.py
@@ -20,6 +20,8 @@ def _get_start_end_index(basename, items):
# in a contiguous range. This is the case because pytest
# will group all... | Only rearrange integ tests if we see test_features tests | py |
diff --git a/chemlab/graphics/renderers/cylinder_imp.py b/chemlab/graphics/renderers/cylinder_imp.py
index <HASH>..<HASH> 100644
--- a/chemlab/graphics/renderers/cylinder_imp.py
+++ b/chemlab/graphics/renderers/cylinder_imp.py
@@ -153,7 +153,7 @@ class CylinderImpostorRenderer(ShaderBaseRenderer):
glEnableClie... | Fixed wrong triangle count for cylinder renderer | py |
diff --git a/epsilon/test/test_caseless.py b/epsilon/test/test_caseless.py
index <HASH>..<HASH> 100644
--- a/epsilon/test/test_caseless.py
+++ b/epsilon/test/test_caseless.py
@@ -258,7 +258,7 @@ class CaselessTestCase(TestCase):
def assertNotFound(a, b, rest=()):
self.assertEquals(a.find(b, *rest)... | Make the tests slightly more lenient about exception messages. | py |
diff --git a/contentfiles/storage.py b/contentfiles/storage.py
index <HASH>..<HASH> 100644
--- a/contentfiles/storage.py
+++ b/contentfiles/storage.py
@@ -19,6 +19,7 @@ class BaseContentFilesStorage(S3BotoStorage):
access_key = os.environ.get('AWS_ACCESS_KEY_ID')
secret_key = os.environ.get('AWS_SECRET_ACCESS... | Use the default bucket ACL Private ACL for the bucket by default, always | py |
diff --git a/holoviews/view/sheetviews.py b/holoviews/view/sheetviews.py
index <HASH>..<HASH> 100644
--- a/holoviews/view/sheetviews.py
+++ b/holoviews/view/sheetviews.py
@@ -468,6 +468,13 @@ class Points(Layer):
arr = np.hstack(tuple(arr.reshape(arr.shape if len(arr.shape)==2
... | Points now accepts Table in constructor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,7 @@ setup(
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: Implementation :: PyPy',
],
entr... | Add PyPy to the setup.py list since we test it through tox | py |
diff --git a/pyscreeze/__init__.py b/pyscreeze/__init__.py
index <HASH>..<HASH> 100644
--- a/pyscreeze/__init__.py
+++ b/pyscreeze/__init__.py
@@ -92,6 +92,8 @@ def _load_cv2(img, grayscale=None):
# don't try to convert an already-gray image to gray
if grayscale and len(img.shape) == 3: # and img.sha... | Update __init__.py Fix UnboundLocalError (img_cv won't be assigned) when img is a true-color array. | py |
diff --git a/krypy/recycling/evaluators.py b/krypy/recycling/evaluators.py
index <HASH>..<HASH> 100644
--- a/krypy/recycling/evaluators.py
+++ b/krypy/recycling/evaluators.py
@@ -194,6 +194,10 @@ class RitzApproxKrylov(object):
(bound_pseudo[1:]/bound_pseudo[0])
** (1./numpy.array(rang... | [recycling] fix non-computable bound | py |
diff --git a/darcs/darcs-fast-export.py b/darcs/darcs-fast-export.py
index <HASH>..<HASH> 100755
--- a/darcs/darcs-fast-export.py
+++ b/darcs/darcs-fast-export.py
@@ -61,6 +61,9 @@ working = "%s.darcs" % origin
progress("getting list of patches")
sock = os.popen("darcs changes --xml --reverse --repo %s" % origin)
bu... | escape a bad char. more to come? | py |
diff --git a/testing/python/approx.py b/testing/python/approx.py
index <HASH>..<HASH> 100644
--- a/testing/python/approx.py
+++ b/testing/python/approx.py
@@ -390,6 +390,20 @@ class TestApprox(object):
assert op(np.array(a), approx(x, nan_ok=True))
assert op(a, approx(np.array(x), nan_ok=True)... | may as well include inf test while we're at it | py |
diff --git a/sanic_jwt/blueprint.py b/sanic_jwt/blueprint.py
index <HASH>..<HASH> 100644
--- a/sanic_jwt/blueprint.py
+++ b/sanic_jwt/blueprint.py
@@ -2,16 +2,13 @@ from sanic.response import json, text
from sanic import Blueprint
from . import exceptions
-
bp = Blueprint('auth_bp')
async def get_access_token... | fixed a minor bug that was causing the tests to break | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -669,7 +669,7 @@ class ContextMaker(object):
yield ctx, poes
s += n
- def estimate_weight(self, src, sr... | Simplied weight [ci skip] | py |
diff --git a/eulfedora/models.py b/eulfedora/models.py
index <HASH>..<HASH> 100644
--- a/eulfedora/models.py
+++ b/eulfedora/models.py
@@ -1292,7 +1292,8 @@ class DigitalObject(object):
'pid': self.pid,
'label': self.label,
'owner': self.owner,
- # FIXME: the types ... | update comments about date fields in index data | py |
diff --git a/isambard_dev/ampal/non_canonical.py b/isambard_dev/ampal/non_canonical.py
index <HASH>..<HASH> 100644
--- a/isambard_dev/ampal/non_canonical.py
+++ b/isambard_dev/ampal/non_canonical.py
@@ -1,5 +1,6 @@
"""Contains tools for working with non-canonical animo acids."""
+import os
import pathlib
import pi... | Fixes bug with path to reference files. | py |
diff --git a/nbgitpuller/version.py b/nbgitpuller/version.py
index <HASH>..<HASH> 100644
--- a/nbgitpuller/version.py
+++ b/nbgitpuller/version.py
@@ -1,2 +1,2 @@
""""The nbgitpuller PyPI package SemVer version."""
-__version__ = '0.4.0'
+__version__ = '0.5.0' | Bump to <I>. | py |
diff --git a/soco/__init__.py b/soco/__init__.py
index <HASH>..<HASH> 100644
--- a/soco/__init__.py
+++ b/soco/__init__.py
@@ -4,7 +4,7 @@ from __future__ import unicode_literals
""" SoCo (Sonos Controller) is a simple library to control Sonos speakers """
# Will be parsed by setup.py to determine package metadata
... | Update author info to "The SoCo-Team" | py |
diff --git a/furious/_pkg_meta.py b/furious/_pkg_meta.py
index <HASH>..<HASH> 100644
--- a/furious/_pkg_meta.py
+++ b/furious/_pkg_meta.py
@@ -1,2 +1,2 @@
-version_info = (1, 1, 0)
+version_info = (1, 2, 0)
version = '.'.join(map(str, version_info)) | Updating to <I> Incrementing a minor version to <I> | py |
diff --git a/salt/beacons/aix_account.py b/salt/beacons/aix_account.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/aix_account.py
+++ b/salt/beacons/aix_account.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
"""
Beacon to fire event when we notice a AIX user is locked due to many failed login attempts.
@@ -6,10 +5,... | Drop Py2 and six on salt/beacons/aix_account.py | py |
diff --git a/girder/api/v1/resource.py b/girder/api/v1/resource.py
index <HASH>..<HASH> 100644
--- a/girder/api/v1/resource.py
+++ b/girder/api/v1/resource.py
@@ -29,6 +29,9 @@ from girder.utility import acl_mixin
from girder.utility import ziputil
from girder.utility.progress import ProgressContext
+# Plugins can ... | Make it easier for plugins to hook into resource search | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,12 @@ if __name__ == '__main__':
author='Christopher Foo',
author_email='chris.foo@gmail.com',
url='https://github.com/chfoo/wpull',
- package_data={'': ['testing/*/*.html', 'testing... | setup.py: Fixes ca-bundle not included on install. | py |
diff --git a/tests/repository_test.py b/tests/repository_test.py
index <HASH>..<HASH> 100644
--- a/tests/repository_test.py
+++ b/tests/repository_test.py
@@ -535,7 +535,7 @@ def test_additional_ruby_dependencies_installed(tempdir_factory, store):
assert 'tins' in output
-@xfailif_windows
+@xfailif_windows... | oh right, needs a no-cover for xfail | py |
diff --git a/run.py b/run.py
index <HASH>..<HASH> 100755
--- a/run.py
+++ b/run.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# Copyright (c) 2015 SubDownloader Developers - See COPYING - GPLv3
+# PYTHON_ARGCOMPLETE_OK
import sys, os, platform
@@ -9,27 +10,22 @@ if os.path.isfile(sys.path[0]):
else:
subdown... | Enable bash autocompletion. | py |
diff --git a/tornado/websocket.py b/tornado/websocket.py
index <HASH>..<HASH> 100644
--- a/tornado/websocket.py
+++ b/tornado/websocket.py
@@ -1072,7 +1072,7 @@ class WebSocketProtocol13(WebSocketProtocol):
return self.stream.write(frame)
def write_message(
- self, message: Union[str, bytes, dict... | write_message method of WebSocketClientConnection now accepts dict as input | py |
diff --git a/multi_dict.py b/multi_dict.py
index <HASH>..<HASH> 100644
--- a/multi_dict.py
+++ b/multi_dict.py
@@ -56,7 +56,10 @@ class MultiDict():
for i in range(len(key)):
if not _isdict(value):
raise KeyError('Key {} not applicable. Under key {} is a value of type ... | BUG: util/multi_dict.py: now throws KeyError if number of dicts is smaller than dim of key | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(
name='vr.builder',
description=('Command line tools to build apps in containers.'),
namespace_packages=['vr'],
- version='1.4.0',
+ version='1.4.1',
author='Brent Tubbs',
auth... | Bumping version to <I> | py |
diff --git a/cfgrib/messages.py b/cfgrib/messages.py
index <HASH>..<HASH> 100644
--- a/cfgrib/messages.py
+++ b/cfgrib/messages.py
@@ -261,6 +261,7 @@ class FileIndex(collections.abc.Mapping):
def from_filestream(cls, filestream, index_keys):
offsets = collections.OrderedDict()
count_offsets = {}... | In-memory and on-disk optimisation for the FileIndex | py |
diff --git a/quantecon/models/solow/cobb_douglas.py b/quantecon/models/solow/cobb_douglas.py
index <HASH>..<HASH> 100644
--- a/quantecon/models/solow/cobb_douglas.py
+++ b/quantecon/models/solow/cobb_douglas.py
@@ -1,4 +1,39 @@
+"""
+Solow growth model with Cobb-Douglas aggregate production.
+
+@author : David R. Pugh
... | Added model class and docstring. | py |
diff --git a/doctr/local.py b/doctr/local.py
index <HASH>..<HASH> 100644
--- a/doctr/local.py
+++ b/doctr/local.py
@@ -154,7 +154,7 @@ def upload_GitHub_deploy_key(repo, key, *, read_only=False,
"key": key,
"read_only": read_only,
}
- return GitHub_post(data, DEPLOY_KEY_URL)['url']
+ return... | The url isn't helpful, just return the whole json response | py |
diff --git a/escpos/escpos.py b/escpos/escpos.py
index <HASH>..<HASH> 100644
--- a/escpos/escpos.py
+++ b/escpos/escpos.py
@@ -184,19 +184,22 @@ class Escpos(object):
n = n + h[i+b]
im = im.point(lut)
- ratio = float(width) / im.size[0]
- newheight = int(ratio * im.size... | Allow bypassing the resizing and height-cropping steps in fullimage() | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -148,8 +148,6 @@ requires = [
# NOTE: Don't upgrade the version of six! Doing so causes installation
# problems. See https://github.com/ray-project/ray/issues/4169.
"six >= 1.0.0",
- ... | Remove typing from setup.py install_requirements. (#<I>) | py |
diff --git a/lib/server.py b/lib/server.py
index <HASH>..<HASH> 100644
--- a/lib/server.py
+++ b/lib/server.py
@@ -64,10 +64,10 @@ class QueueManager(threading.Thread):
Eventually, pysynphot servers that support more than just the
ETC functionality might be desired, and we could probably
refa... | Commit a version of server.py that uses newetc interface to enable more extensive testing. git-svn-id: <URL> | py |
diff --git a/wfdb/plot/plot.py b/wfdb/plot/plot.py
index <HASH>..<HASH> 100644
--- a/wfdb/plot/plot.py
+++ b/wfdb/plot/plot.py
@@ -856,7 +856,7 @@ def plot_wfdb(
record=None,
annotation=None,
plot_sym=False,
- time_units="samples",
+ time_units="seconds",
title=None,
sig_style=[""],
... | plot_wfdb: use units of "seconds" by default. | py |
diff --git a/AlphaTwirl/Counter/Counts.py b/AlphaTwirl/Counter/Counts.py
index <HASH>..<HASH> 100755
--- a/AlphaTwirl/Counter/Counts.py
+++ b/AlphaTwirl/Counter/Counts.py
@@ -7,21 +7,24 @@ import collections
class Counts(object):
def __init__(self):
self._counts = { }
+ self._val_names = ('n', 'nv... | put the column names in variables in Counts | py |
diff --git a/aresponses/main.py b/aresponses/main.py
index <HASH>..<HASH> 100644
--- a/aresponses/main.py
+++ b/aresponses/main.py
@@ -66,6 +66,7 @@ class ResponsesMockServer(BaseTestServer):
self._unmatched_requests = []
self._first_unordered_request = None
self._request_count = 0
+ s... | feature: any calls made are now available for inspection `aresponses.calls` | py |
diff --git a/src/hcl/api.py b/src/hcl/api.py
index <HASH>..<HASH> 100644
--- a/src/hcl/api.py
+++ b/src/hcl/api.py
@@ -27,9 +27,8 @@ def loads(s):
TODO: Multiple threads
'''
+ s = s.decode('utf-8')
if isHcl(s):
- if sys.version_info[0] < 3 and isinstance(s, unicode):
- ... | Decode all input as utf-8 (fixes python3 issue with hcltool) | py |
diff --git a/abydos/clustering.py b/abydos/clustering.py
index <HASH>..<HASH> 100644
--- a/abydos/clustering.py
+++ b/abydos/clustering.py
@@ -83,7 +83,7 @@ def phonetic_fingerprint(phrase, phonetic_algorithm=double_metaphone, *args):
string and returns a string (presumably a phonetic representation of
... | pylint prioritized over sphinx warnings | py |
diff --git a/doc/fake_cffi.py b/doc/fake_cffi.py
index <HASH>..<HASH> 100644
--- a/doc/fake_cffi.py
+++ b/doc/fake_cffi.py
@@ -9,4 +9,10 @@ class FFI(object):
def dlopen(self, _):
return self
+ def string(self, _):
+ return b'not implemented'
+
+ def sf_version_string(self):
+ return... | DOC: Add missing member functions in fake CFFI class PR #<I> introduced those calls on module load, which broke the Sphinx autodoc generation. | py |
diff --git a/bcbio/variation/coverage.py b/bcbio/variation/coverage.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/coverage.py
+++ b/bcbio/variation/coverage.py
@@ -24,7 +24,7 @@ from bcbio.pipeline import datadict as dd
from bcbio.provenance import do
from bcbio.variation import bedutils
-DEFAULT_COVERAGE_CU... | Change the default coverage cutoff for the completeness metric to <I>. It was previously 4, which is extremely low. | py |
diff --git a/pymatgen/io/tests/test_cif.py b/pymatgen/io/tests/test_cif.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/tests/test_cif.py
+++ b/pymatgen/io/tests/test_cif.py
@@ -356,10 +356,10 @@ loop_
# parsed as "N" because the label is "N{x}" (x = 1,2,..) and the
# corresponding symbol is ... | Update test, still incorrect result though! | py |
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -229,6 +229,8 @@ class Gen_compressed(threading.Thread):
# Add Blockly.Blocks to be compatible with the compiler.
params.append(("js_code", "goog.provide('Blockly.Blocks');"))
filenames = glob.glob(os.path.join(... | Update build.py to include colours in blocks_compressed Fixes #<I> | py |
diff --git a/rarfile.py b/rarfile.py
index <HASH>..<HASH> 100644
--- a/rarfile.py
+++ b/rarfile.py
@@ -1338,6 +1338,11 @@ class PipeReader(BaseReader):
"""Read from pipe."""
return self.fd.read(cnt)
+ def close(self):
+ BaseReader.close(self)
+ if self.proc:
+ self.proc.w... | PipeReader: always .wait() on unrar, to avoid zombies | py |
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py
index <HASH>..<HASH> 100755
--- a/astrodbkit/astrodb.py
+++ b/astrodbkit/astrodb.py
@@ -1086,7 +1086,8 @@ class Database:
params: sequence
Mimics the native parameter substitution of sqlite3
fmt: str
- Returns the data ... | added option for query() to return pandas Dataframes | py |
diff --git a/test/acceptance/test_cli_vital.py b/test/acceptance/test_cli_vital.py
index <HASH>..<HASH> 100644
--- a/test/acceptance/test_cli_vital.py
+++ b/test/acceptance/test_cli_vital.py
@@ -12,21 +12,12 @@ class TestVintDoNotDiedWhenLintingVital(unittest.TestCase):
except subprocess.CalledProcessError as ... | Fix false-negative test caused by using fallbacked assertNotRegex | py |
diff --git a/spyder/plugins/editor/widgets/codeeditor.py b/spyder/plugins/editor/widgets/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor/widgets/codeeditor.py
+++ b/spyder/plugins/editor/widgets/codeeditor.py
@@ -1479,7 +1479,7 @@ class CodeEditor(TextEditBaseWidget):
# ------------- LSP: ... | Format whole document when range formatting is not available | py |
diff --git a/splearn/cluster/k_means_.py b/splearn/cluster/k_means_.py
index <HASH>..<HASH> 100644
--- a/splearn/cluster/k_means_.py
+++ b/splearn/cluster/k_means_.py
@@ -117,8 +117,8 @@ class SparkKMeans(KMeans):
check_rdd(X, (np.ndarray, sp.spmatrix))
if hasattr(self, '_mllib_model'):
i... | Updated SparkKMeans.predict to reflect the changes made in ArrayRDD's interface. | py |
diff --git a/honeypot/tests.py b/honeypot/tests.py
index <HASH>..<HASH> 100644
--- a/honeypot/tests.py
+++ b/honeypot/tests.py
@@ -6,7 +6,6 @@ from django.conf import settings
from honeypot.middleware import HoneypotViewMiddleware, HoneypotResponseMiddleware
from honeypot.decorators import verify_honeypot_value, chec... | oops, stray print | py |
diff --git a/src/discoursegraphs/readwrite/rst/rs3.py b/src/discoursegraphs/readwrite/rst/rs3.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/readwrite/rst/rs3.py
+++ b/src/discoursegraphs/readwrite/rst/rs3.py
@@ -387,7 +387,7 @@ def extract_relationtypes(rs3_xml_tree):
(str).
"""
return {re... | rst: simplified extract_relationtypes() - this now works on RS3 snippets instead of only on complete files | py |
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py
index <HASH>..<HASH> 100644
--- a/semantic_release/__init__.py
+++ b/semantic_release/__init__.py
@@ -1,6 +1,6 @@
"""Semantic Release
"""
-__version__ = '4.5.0'
+__version__ = '4.5.1'
from .errors import UnknownCommitMessageStyleError # no... | <I> Automatically generated by python-semantic-release | py |
diff --git a/buildbot_travis/steps/spawner.py b/buildbot_travis/steps/spawner.py
index <HASH>..<HASH> 100644
--- a/buildbot_travis/steps/spawner.py
+++ b/buildbot_travis/steps/spawner.py
@@ -75,7 +75,7 @@ class TravisTrigger(ConfigurableStep):
ss = ss_for_trigger[self.build.builder.name]
# Stop the ... | ss is now a dict | py |
diff --git a/tests/test_pystache.py b/tests/test_pystache.py
index <HASH>..<HASH> 100644
--- a/tests/test_pystache.py
+++ b/tests/test_pystache.py
@@ -81,6 +81,14 @@ class TestPystache(unittest.TestCase):
ret = pystache.render(template, context)
self.assertEquals(ret, '{{hello}}')
+ def test_tag_... | Adding failing test showing callable output being treated as template code | py |
diff --git a/src/gui/gui_measurement_pc.py b/src/gui/gui_measurement_pc.py
index <HASH>..<HASH> 100644
--- a/src/gui/gui_measurement_pc.py
+++ b/src/gui/gui_measurement_pc.py
@@ -95,16 +95,19 @@ probes = {
# # 2
# # 1 - filter wheel
# # 0 - flip mount
-# instruments = {
-# 'IR block': 'MaestroBeamBlock',
-# ... | simple fpga input output works also in gui! | py |
diff --git a/pygsp/tests/test_plotting.py b/pygsp/tests/test_plotting.py
index <HASH>..<HASH> 100644
--- a/pygsp/tests/test_plotting.py
+++ b/pygsp/tests/test_plotting.py
@@ -188,11 +188,12 @@ class TestFilters(unittest.TestCase):
def test_all_filters(self):
"""Plot all filters."""
- for classnam... | tests: update after removal of __all__ | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -152,10 +152,6 @@ class AssetFinder(object):
return found
- def lookup_single_asset_type(self, sid):
- """Retrieve the asset type for a sin... | MAINT: Remove unused method. | py |
diff --git a/gffutils/__init__.py b/gffutils/__init__.py
index <HASH>..<HASH> 100644
--- a/gffutils/__init__.py
+++ b/gffutils/__init__.py
@@ -38,9 +38,9 @@ def create_db(fn, dbfn, verbose=True, force=False):
first_feature = GFFFile(fn).next()
fmt = first_feature.filetype
if fmt == 'gff':
- creato... | pass force kwarg to creating class | py |
diff --git a/floodestimation/fehdata.py b/floodestimation/fehdata.py
index <HASH>..<HASH> 100644
--- a/floodestimation/fehdata.py
+++ b/floodestimation/fehdata.py
@@ -96,7 +96,7 @@ def _update_nrfa_metadata(remote_config):
config['nrfa']['version'] = remote_config['nrfa_version']
config['nrfa']['url'] = remot... | fix NRFA data download timestamp | py |
diff --git a/pypot/sensor/range/sonar.py b/pypot/sensor/range/sonar.py
index <HASH>..<HASH> 100644
--- a/pypot/sensor/range/sonar.py
+++ b/pypot/sensor/range/sonar.py
@@ -1,6 +1,9 @@
from __future__ import print_function
import time
+import numpy
+
+from collections import deque
from ...robot.sensor import Senso... | Use python deque instead of re-coding one. | py |
diff --git a/tomodachi/watcher.py b/tomodachi/watcher.py
index <HASH>..<HASH> 100644
--- a/tomodachi/watcher.py
+++ b/tomodachi/watcher.py
@@ -20,7 +20,7 @@ class Watcher(object):
self.watched_files_crc = {} # type: Dict[str, str]
self.root = [] # type: List[str]
self.ignored_dirs = ["__pyc... | Added .pyi to list of watched file endings | py |
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index <HASH>..<HASH> 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -75,7 +75,7 @@ def header(input_api):
def source_file_filter(input_api):
"""Returns filter that selects source code files only."""
- bl = list(input_api.DEFAULT_BLACK_LIST) + [
+ files_to_skip = list(in... | Rename white_list/black_list in presubmit in luci-go These are being renamed for presubmit scripts. Bug: <I> Change-Id: I<I>efa2d<I>d<I>fbf2a<I>b0a<I>edf<I>b1e7c2eed Reviewed-on: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ license: GNU-GPL2
from setuptools import setup
setup(name='pyprofiler',
- version='52',
+ version='53',
description='Profiler utility for python, graphical and textual, whole program or segmen... | Charles Baudelaire: The qualities I most admire in women are confidence and kindness. Thursday <I> June <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/pysd/py_backend/external.py b/pysd/py_backend/external.py
index <HASH>..<HASH> 100644
--- a/pysd/py_backend/external.py
+++ b/pysd/py_backend/external.py
@@ -583,7 +583,8 @@ class External(object):
return data.reshape(dims)
- def _series_selector(self, x_row_or_col, cell):
+ @classmethod... | Convert _series_selector to a class method | py |
diff --git a/algorithms/tree/red_black_tree/red_black_tree.py b/algorithms/tree/red_black_tree/red_black_tree.py
index <HASH>..<HASH> 100644
--- a/algorithms/tree/red_black_tree/red_black_tree.py
+++ b/algorithms/tree/red_black_tree/red_black_tree.py
@@ -194,7 +194,7 @@ class RBTree:
node_color = node_min.... | "delete_fixup" optimization (#<I>) * "delete_fixup" optimization * node_min.parent != node -> node_min.parent is not node | py |
diff --git a/plexapi/library.py b/plexapi/library.py
index <HASH>..<HASH> 100644
--- a/plexapi/library.py
+++ b/plexapi/library.py
@@ -496,7 +496,10 @@ class LibrarySection(PlexObject):
data = {}
key = 'prefs[%s]'
for setting in self.settings():
- data[key % setting.id] = setting.d... | correction for library.librarySection.defaultAdvanced method | py |
diff --git a/billy/reports/bills.py b/billy/reports/bills.py
index <HASH>..<HASH> 100644
--- a/billy/reports/bills.py
+++ b/billy/reports/bills.py
@@ -149,7 +149,7 @@ def scan_bills(abbr):
(len(vote['yes_votes']) != vote['yes_count'] or
len(vote['no_votes']) != vote['no_count'] or
... | add vote ids to bad_vote_counts, not bills | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -206,17 +206,21 @@ def gendocs():
@task
-@needs("docs")
def dist_docs():
"create a documentation bundle"
dist_dir = path("dist")
+ html_dir = path("docs/_build/html")
docs_package = path("%s... | dist_docs: package tree made by 'autodocs' | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.