diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/config.py b/salt/config.py index <HASH>..<HASH> 100644 --- a/salt/config.py +++ b/salt/config.py @@ -175,7 +175,8 @@ def minion_config(path): opts['grains'] = salt.loader.grains(opts) # Prepend root_dir to other paths - prepend_root_dir(opts, ['pki_dir', 'cachedir', 'log_file', 'key_log...
Add extension_modules to root path, Issue #<I>
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -1799,6 +1799,7 @@ class Referer(object): 'bs', 'bt', 'bv', + 'cg', 'cy', 'eg', 'et', @@ -2669,7 +2670,7 @@ if __name...
Introduction of `cg` into the list of ignored extensions cf: No whois server.
py
diff --git a/pycbc/events/eventmgr.py b/pycbc/events/eventmgr.py index <HASH>..<HASH> 100644 --- a/pycbc/events/eventmgr.py +++ b/pycbc/events/eventmgr.py @@ -807,9 +807,11 @@ class EventManagerCoherent(EventManagerMultiDetBase): existing_events_mask[ifo]]['event_id'] self.event_index[if...
Fixed bug where the network evend id number was not being incremented for each template analysed (#<I>)
py
diff --git a/jaraco/util/dictlib.py b/jaraco/util/dictlib.py index <HASH>..<HASH> 100644 --- a/jaraco/util/dictlib.py +++ b/jaraco/util/dictlib.py @@ -210,6 +210,10 @@ class FoldedCaseKeyedDict(dict): {u'heLlo': u'world'} >>> d['hello'] u'world' + >>> 'hello' in d + True + >>> 'HELLO' in d + True >>> FoldedCase...
Added support for contains in the FoldedCaseKeyedDict
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import print_function from setuptools impo...
Print a more helpful error if bootstrapping hasn't been done
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,9 @@ import os -from setuptools import setup import sys +from setuptools import setup +from m2r import convert + def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() @@ ...
chore: Use m2r to convert the changelog to rst
py
diff --git a/openquake/commonlib/export/risk.py b/openquake/commonlib/export/risk.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/export/risk.py +++ b/openquake/commonlib/export/risk.py @@ -245,6 +245,7 @@ def export_ass_losses_ebr(ekey, dstore): sm_id, eid = get_sm_id_eid(ekey[0]) if sm_id is None: ...
Converted eid into an int Former-commit-id: 8abdac<I>b<I>cbd7e<I>ae<I>e8fb4ab0
py
diff --git a/tests/jenkins.py b/tests/jenkins.py index <HASH>..<HASH> 100644 --- a/tests/jenkins.py +++ b/tests/jenkins.py @@ -76,13 +76,14 @@ def run(platform, provider, commit, clean, sls, pillar): proc.poll_and_read_until_finish() proc.communicate() - if proc.returncode > 0: - print('Failed to ...
Non zero exit codes should be considered errors.
py
diff --git a/hgdistver.py b/hgdistver.py index <HASH>..<HASH> 100644 --- a/hgdistver.py +++ b/hgdistver.py @@ -12,7 +12,7 @@ def getoutput(cmd, cwd='.'): return out.decode() # will kill us sometimes hg_prefix = 'python2 -c "from mercurial import dispatch;dispatch.run()" ' -if sys.platform == 'winnt': +if sys.pl...
seems its actually win<I>, not winnt
py
diff --git a/dingo/grid/mv_grid/models/models.py b/dingo/grid/mv_grid/models/models.py index <HASH>..<HASH> 100644 --- a/dingo/grid/mv_grid/models/models.py +++ b/dingo/grid/mv_grid/models/models.py @@ -206,7 +206,11 @@ class Route(object): current rating of cable/line voltage stability at all...
add some meta infos to tech. constraints
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -527,7 +527,8 @@ def _virtual(osdata): if salt.log.is_logging_configured(): # systemd-detect-virt always returns > 0 on non-virtualized ...
make prtdiag fix play nicer with zones
py
diff --git a/zenpy/lib/api.py b/zenpy/lib/api.py index <HASH>..<HASH> 100644 --- a/zenpy/lib/api.py +++ b/zenpy/lib/api.py @@ -102,15 +102,16 @@ class BaseApi(object): else: headers = None - if payload: + if payload is not None: response = self._call_api(self.session.p...
Fix bug sending multipart uploads. Closes #<I> and #<I>
py
diff --git a/spyder_notebook/widgets/client.py b/spyder_notebook/widgets/client.py index <HASH>..<HASH> 100644 --- a/spyder_notebook/widgets/client.py +++ b/spyder_notebook/widgets/client.py @@ -158,7 +158,10 @@ class NotebookClient(QWidget): return self.name def get_short_name(self): + """Get a ...
Added validation for names with more than <I> characters.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( 'Programming Language :: Python :: 2.7', ], - keywords='omxplayer pi raspberry raspberrypi raspberry_pi library', + keywords='omxplayer pi raspberry raspberrypi raspberry_pi library ...
Release: Add more keywords to setup.py
py
diff --git a/bson/objectid.py b/bson/objectid.py index <HASH>..<HASH> 100644 --- a/bson/objectid.py +++ b/bson/objectid.py @@ -26,6 +26,7 @@ except ImportError: # for Python < 2.5 import md5 _md5func = md5.new import os +import random import socket import struct import threading @@ -51,7 +52,7 @@ class O...
Initialize ObjectId._inc to a random value. This is required to prevent collisions on very large clusters. See <URL>
py
diff --git a/tbone/resources/resources.py b/tbone/resources/resources.py index <HASH>..<HASH> 100644 --- a/tbone/resources/resources.py +++ b/tbone/resources/resources.py @@ -260,7 +260,6 @@ class MongoResource(Resource): self.view_type = kwargs.get('view_type', None) # post_save.connect(self.post_sav...
filter numeric query strings by their integer value
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/punch/cli.py b/punch/cli.py index <HASH>..<HASH> 100644 --- a/punch/cli.py +++ b/punch/cli.py @@ -284,12 +284,8 @@ def main(original_args=None): except ValueError as e: print("Warning:", e) - with open(args.version_file, 'w') as f: - for i in new_version.ke...
Use `Version#to_file` instead of reimplementing inline. The punch CLI was writing `Version` info back to the version file inline. This was leading to the `DateVersionPart` bug sticking around for command-line usage, even though `Version#to_file` was already fixed. Since there was already an instance method on `Version...
py
diff --git a/ggplot/geoms/geom_jitter.py b/ggplot/geoms/geom_jitter.py index <HASH>..<HASH> 100644 --- a/ggplot/geoms/geom_jitter.py +++ b/ggplot/geoms/geom_jitter.py @@ -12,7 +12,6 @@ class geom_jitter(geom_point): 'width': None, 'height': None} def __init__(self, *args, **kwargs): - ...
Remove print statement from geom_jitter
py
diff --git a/plexapi/video.py b/plexapi/video.py index <HASH>..<HASH> 100644 --- a/plexapi/video.py +++ b/plexapi/video.py @@ -136,6 +136,10 @@ class Video(PlexPartialObject): data = open(filepath,'rb').read() self._server.query(key, method=self._server._session.post, data=data) + def set...
adding setPoster in Video class instead of or in combination to Poster class
py
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/vasp/outputs.py +++ b/pymatgen/io/vasp/outputs.py @@ -21,6 +21,7 @@ from monty.io import zopen, reverse_readfile from monty.json import MSONable from monty.json import jsanitize from monty.re import r...
Allow mixed (un)compressed files from VASP band structure
py
diff --git a/pyfrc/physics/core.py b/pyfrc/physics/core.py index <HASH>..<HASH> 100644 --- a/pyfrc/physics/core.py +++ b/pyfrc/physics/core.py @@ -148,6 +148,13 @@ class PhysicsInterface: self.log_init_errors = True def _simulationInit(self, robot): + + # reset state first so that the PhysicsEngi...
Initialize Field object before physics engine - Allows physics engine constructor to access field
py
diff --git a/tests/test_prettyprinter.py b/tests/test_prettyprinter.py index <HASH>..<HASH> 100644 --- a/tests/test_prettyprinter.py +++ b/tests/test_prettyprinter.py @@ -245,7 +245,7 @@ def containers(primitives): @settings( # This is a heavy test, but it's especially # slow on Python 3.5. - suppress_hea...
Pass correct argument to suppress_health_check
py
diff --git a/src/masonite/cache/Cache.py b/src/masonite/cache/Cache.py index <HASH>..<HASH> 100644 --- a/src/masonite/cache/Cache.py +++ b/src/masonite/cache/Cache.py @@ -51,3 +51,6 @@ class Cache: def flush(self, *args, store=None, **kwargs): return self.store(name=store).flush(*args, **kwargs) + + ...
add missing remember method on main Cache instance
py
diff --git a/syn/base_utils/tests/test_dict.py b/syn/base_utils/tests/test_dict.py index <HASH>..<HASH> 100644 --- a/syn/base_utils/tests/test_dict.py +++ b/syn/base_utils/tests/test_dict.py @@ -107,7 +107,6 @@ def test_reflexivedict(): #------------------------------------------------------------------------------- ...
Completing SeqDict test coverage
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -1,6 +1,6 @@ # fmt: off __title__ = "spacy-nightly" -__version__ = "3.0.0a2" +__version__ = "3.0.0a3" __release__ = True __download_url__ = "https://github.com/explosion/spacy-models/releases/downlo...
Set version to <I>a3
py
diff --git a/jks/jks.py b/jks/jks.py index <HASH>..<HASH> 100644 --- a/jks/jks.py +++ b/jks/jks.py @@ -93,7 +93,7 @@ class KeyStore(object): # TODO: implement me # the keystore integrity check uses the UTF-16BE encoding of the password - password_utf16 = ''.join([b'\0'+c for c in pass...
switched to a proper UTF-<I>be encode call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ If you get errors, check the following things: """ setup(name='CleanerVersion', - version='1.4.0', + version='1.4.1', description='A versioning solution for relational data models using the ...
Bumped version from <I> to <I>
py
diff --git a/oembed/sites.py b/oembed/sites.py index <HASH>..<HASH> 100644 --- a/oembed/sites.py +++ b/oembed/sites.py @@ -159,10 +159,18 @@ class ProviderSite(object): date_expires = datetime.datetime.now() + datetime.timedelta(seconds=cache_age) - st...
Hacking around some really bizarre IntegrityErrors was getting with <I>.x when using get_or_create or create() - the model appeared to save to the db but the PK was not set on the instance
py
diff --git a/src/scout_apm/core/samplers/cpu.py b/src/scout_apm/core/samplers/cpu.py index <HASH>..<HASH> 100644 --- a/src/scout_apm/core/samplers/cpu.py +++ b/src/scout_apm/core/samplers/cpu.py @@ -11,7 +11,7 @@ logger = logging.getLogger(__name__) class Cpu(object): def __init__(self): self.last_run = ...
Fix CPU sampler to only look at the single process's data
py
diff --git a/sacred/observers/mongo.py b/sacred/observers/mongo.py index <HASH>..<HASH> 100644 --- a/sacred/observers/mongo.py +++ b/sacred/observers/mongo.py @@ -54,10 +54,15 @@ class MongoObserver(RunObserver): @staticmethod def create(url='localhost', db_name='sacred', collection='runs', - ...
add option to pass existing MongoClient instance to MongoObserver The point of this is to allow one to avoid creating redundant instances of MongoClient
py
diff --git a/tweepy/api.py b/tweepy/api.py index <HASH>..<HASH> 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -640,7 +640,7 @@ class API(object): search_api = True, path = '/search.json', payload_type = 'search_result', payload_list = True, - allowed_param = ['q', 'lang', 'locale',...
Add additonal search() parameters supported by Twitter.
py
diff --git a/grammpy/Rule.py b/grammpy/Rule.py index <HASH>..<HASH> 100644 --- a/grammpy/Rule.py +++ b/grammpy/Rule.py @@ -49,3 +49,7 @@ class Rule: @classmethod def rules_count(cls): return len(cls.rules) + + @classmethod + def count(cls): + return cls.rules_count()
Add short name of Rule.count method
py
diff --git a/nodeconductor/cost_tracking/filters.py b/nodeconductor/cost_tracking/filters.py index <HASH>..<HASH> 100644 --- a/nodeconductor/cost_tracking/filters.py +++ b/nodeconductor/cost_tracking/filters.py @@ -7,7 +7,7 @@ from rest_framework import filters from nodeconductor.core import filters as core_filters ...
Remove leftover (NC-<I>)
py
diff --git a/splinter/cookie_manager.py b/splinter/cookie_manager.py index <HASH>..<HASH> 100644 --- a/splinter/cookie_manager.py +++ b/splinter/cookie_manager.py @@ -1,3 +1,6 @@ +# -*- coding: utf-8 -*- +from splinter.meta import InheritedDocs + class CookieManagerAPI(object): """ An API that specifies how ...
Inhritance on cookies docs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -15,19 +15,6 @@ def runcmd(cmd, env): out, err = p.communicate() return out, err -def patch_xcode(): - """ - XCode 4.0 dropped support for ppc architecture, which is hardcoded in - distutils.sysconfig - ...
Removing xcode patch. It is no longer needed as extension modules have been replaced with pure-python ctypes-based modules.
py
diff --git a/gns3server/modules/dynamips/__init__.py b/gns3server/modules/dynamips/__init__.py index <HASH>..<HASH> 100644 --- a/gns3server/modules/dynamips/__init__.py +++ b/gns3server/modules/dynamips/__init__.py @@ -174,7 +174,6 @@ class Dynamips(BaseManager): files += glob.glob(os.path.join(project_dir, "c...
Don't delete Dynamips ROM files. They are used to restore the nvram.
py
diff --git a/nodeconductor/iaas/views.py b/nodeconductor/iaas/views.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/views.py +++ b/nodeconductor/iaas/views.py @@ -124,8 +124,7 @@ class InstanceViewSet(mixins.CreateModelMixin, return Response({'status': "No flavor with uuid %s" % flavor_uuid}, statu...
Remove unnecessary request to the database nc-<I>
py
diff --git a/securesystemslib/schema.py b/securesystemslib/schema.py index <HASH>..<HASH> 100755 --- a/securesystemslib/schema.py +++ b/securesystemslib/schema.py @@ -523,7 +523,8 @@ class ListOf(Schema): def check_match(self, object): if not isinstance(object, (list, tuple)): raise securesystemslib.exce...
Make check_match() errors more readable for ListOf objects When the ListOf object's check_match() fails due to an incompatible object having been passed, the salient information for the error message is the type of the passed object and the type of the object against which the check_match() method was called, therefor...
py
diff --git a/getpaid_test_project/getpaid_test_project/orders/tests/test_transferuj.py b/getpaid_test_project/getpaid_test_project/orders/tests/test_transferuj.py index <HASH>..<HASH> 100644 --- a/getpaid_test_project/getpaid_test_project/orders/tests/test_transferuj.py +++ b/getpaid_test_project/getpaid_test_project/o...
Remove parse_qs from transferuj tests (forgot to remove it)
py
diff --git a/spacy/cli/project.py b/spacy/cli/project.py index <HASH>..<HASH> 100644 --- a/spacy/cli/project.py +++ b/spacy/cli/project.py @@ -281,8 +281,15 @@ def project_run(project_dir: Path, subcommand: str, *dvc_args) -> None: dvc_cmd = ["dvc", "repro", subcommand, *dvc_args] run_command(dvc_cmd)...
Check if deps exist in non-DVC commands
py
diff --git a/mythril/analysis/modules/integer.py b/mythril/analysis/modules/integer.py index <HASH>..<HASH> 100644 --- a/mythril/analysis/modules/integer.py +++ b/mythril/analysis/modules/integer.py @@ -119,7 +119,7 @@ class IntegerOverflowUnderflowModule(DetectionModule): def _handle_sstore(self, state): ...
remove type hint that is incompatible with <I>
py
diff --git a/pmagpy/data_model3.py b/pmagpy/data_model3.py index <HASH>..<HASH> 100644 --- a/pmagpy/data_model3.py +++ b/pmagpy/data_model3.py @@ -1,7 +1,7 @@ import os import json from pandas import DataFrame - +from pmagpy import check_updates class DataModel(object): @@ -10,7 +10,8 @@ class DataModel(object)...
fix so that data_model3 works from whatever directory
py
diff --git a/xray/core/variable.py b/xray/core/variable.py index <HASH>..<HASH> 100644 --- a/xray/core/variable.py +++ b/xray/core/variable.py @@ -872,15 +872,15 @@ def _set_data_directly(var, values): var._data = NumpyArrayAdapter(values) -def broadcast_variables(first, second): +def broadcast_variables(*vari...
broadcast_variables handles any number of args
py
diff --git a/sos/__main__.py b/sos/__main__.py index <HASH>..<HASH> 100755 --- a/sos/__main__.py +++ b/sos/__main__.py @@ -303,7 +303,7 @@ def cmd_run(args, workflow_args): 'run_mode': 'dryrun' if args.dryrun else 'run', 'resume_mode': getattr(args, '__resume__', False), ...
Fix dryrun mode caused by the addition of __remote__ condition
py
diff --git a/java-grafeas/synth.py b/java-grafeas/synth.py index <HASH>..<HASH> 100644 --- a/java-grafeas/synth.py +++ b/java-grafeas/synth.py @@ -18,6 +18,8 @@ import synthtool as s import synthtool.gcp as gcp import synthtool.languages.java as java +AUTOSYNTH_MULTIPLE_COMMITS = True + gapic = gcp.GAPICGenerator(...
chore: enable context aware commits (#<I>)
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 @@ -2827,6 +2827,11 @@ class CodeEditor(TextEditBaseWidget): # The event was...
Return if just and only a modifier key is pressed This will make the code more performant :<I>:
py
diff --git a/tests/test_references.py b/tests/test_references.py index <HASH>..<HASH> 100644 --- a/tests/test_references.py +++ b/tests/test_references.py @@ -159,3 +159,12 @@ def test_references_from_file(): assert config.a.simple.reference.example == 'example' assert config.a.complicated.reference == 'val...
Test merge behaviour when passing Configuration as argument
py
diff --git a/f90nml/namelist.py b/f90nml/namelist.py index <HASH>..<HASH> 100644 --- a/f90nml/namelist.py +++ b/f90nml/namelist.py @@ -620,7 +620,7 @@ class Namelist(OrderedDict): """Append a duplicate group to the Namelist as a new group.""" lkey = key.lower() - if lkey in self and lkey not ...
Refactored group handling Changes to cogroups mean that we no longer need to explicitly check for lists when attempting to detect cogroups. They now exist as regular groups with special keys (via NmlKey). A bug was also fixed to allow create_cogroup() to function properly when called inside add_cogroup().
py
diff --git a/eventsourcing/tests/test_system.py b/eventsourcing/tests/test_system.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_system.py +++ b/eventsourcing/tests/test_system.py @@ -97,6 +97,11 @@ class TestSystem(TestCase): with system: pass + with system...
Improved test coverage of system runner (double-running error case).
py
diff --git a/journal/journal_core.py b/journal/journal_core.py index <HASH>..<HASH> 100644 --- a/journal/journal_core.py +++ b/journal/journal_core.py @@ -647,12 +647,8 @@ class Journal(gossip_core.Gossip): self.MostRecentCommittedBlockID[:8] ) - # now find...
Remove common case of findfork and remove depth from findfork
py
diff --git a/Main.py b/Main.py index <HASH>..<HASH> 100755 --- a/Main.py +++ b/Main.py @@ -51,18 +51,20 @@ class Application(object): def append(self): """ Appends a text to a todo item. """ - number = sys.argv[2] - text = sys.argv[3] + try: + number = sys.argv[2] + ...
Fix for append, guard the indices.
py
diff --git a/rt.py b/rt.py index <HASH>..<HASH> 100644 --- a/rt.py +++ b/rt.py @@ -515,6 +515,12 @@ class Rt: pairs['Cc'] = self.__normalize_list(pairs['Cc']) if 'AdminCc' in pairs: pairs['AdminCc'] = self.__normalize_list(pairs['AdminCc']) + + i...
Include numerical_id in search results
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -259,3 +259,22 @@ class TestLazyProxy(unittest.TestCase): b += [1] self.assertEqual(a, [0, 1]) self.assertEqual(b, [0, 1]) + + def test_attributes(self): + class C(object): + def...
Add more LazyProxy tests
py
diff --git a/chess/svg.py b/chess/svg.py index <HASH>..<HASH> 100644 --- a/chess/svg.py +++ b/chess/svg.py @@ -72,7 +72,7 @@ DEFAULT_STYLE = """\ class Arrow(collections.namedtuple("Arrow", ["tail", "head"])): """Details of an arrow to be drawn.""" - pass + __slots__ = () def _svg(viewbox, size):
Improve class Arrow in chess.svg A subclass of collections.namedtuple must implement the __slots__ attribute and, in this case, an empty tuple must be assigned to it.
py
diff --git a/cobra/io/sbml.py b/cobra/io/sbml.py index <HASH>..<HASH> 100644 --- a/cobra/io/sbml.py +++ b/cobra/io/sbml.py @@ -526,22 +526,3 @@ if __name__ == '__main__': growth_rate) print 'Deleting %s'%sbml_file ...
added a remove_from_model to cobra.Gene
py
diff --git a/multidimensional_urlencode/tests/test_urlencode.py b/multidimensional_urlencode/tests/test_urlencode.py index <HASH>..<HASH> 100644 --- a/multidimensional_urlencode/tests/test_urlencode.py +++ b/multidimensional_urlencode/tests/test_urlencode.py @@ -1,5 +1,7 @@ import urllib +import pytest + from multi...
Adding a test for wrong type
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ config = { 'url': 'https://github.com/steveYeah/PyBomb', 'download_url': 'https://github.com/steveYeah/PyBomb/archive/v0.1.tar.gz', 'keywords': ['giant bomb', 'giant', 'bomb', 'game', 'api'], - ...
Add clients package to setup (whoops!)
py
diff --git a/linebot/models/__init__.py b/linebot/models/__init__.py index <HASH>..<HASH> 100644 --- a/linebot/models/__init__.py +++ b/linebot/models/__init__.py @@ -23,6 +23,7 @@ from .actions import ( # noqa CameraAction, CameraRollAction, LocationAction, + RichMenuSwitchAction, Action as Tem...
require RichMenuSwitchAction in linebot/models (#<I>)
py
diff --git a/src/aws_encryption_sdk/identifiers.py b/src/aws_encryption_sdk/identifiers.py index <HASH>..<HASH> 100644 --- a/src/aws_encryption_sdk/identifiers.py +++ b/src/aws_encryption_sdk/identifiers.py @@ -334,7 +334,7 @@ class KeyringTraceFlag(Enum): """KeyRing Trace actions.""" WRAPPING_KEY_GENERATED...
change KeyringTraceFlag values to bitshifted ints to match other implementations
py
diff --git a/cursesmenu/items/submenu_item.py b/cursesmenu/items/submenu_item.py index <HASH>..<HASH> 100644 --- a/cursesmenu/items/submenu_item.py +++ b/cursesmenu/items/submenu_item.py @@ -68,6 +68,6 @@ class SubmenuItem(MenuItem): """ :return: The returned value in the submenu """ - ...
check against None instead of falsiness
py
diff --git a/phy/cluster/views/trace.py b/phy/cluster/views/trace.py index <HASH>..<HASH> 100644 --- a/phy/cluster/views/trace.py +++ b/phy/cluster/views/trace.py @@ -347,7 +347,9 @@ class TraceView(ScalingMixin, ManualClusteringView): if interval != self._interval: logger.debug("Redraw the entire...
Show busy cursor when changing trace view interval
py
diff --git a/pmagpy/pmag.py b/pmagpy/pmag.py index <HASH>..<HASH> 100755 --- a/pmagpy/pmag.py +++ b/pmagpy/pmag.py @@ -1649,7 +1649,16 @@ def Vdiff(D1,D2): def angle(D1,D2): """ - call to angle(D1,D2) returns array of angles between lists of two directions D1,D2 where D1 is for example, [[Dec1,Inc1],[Dec2,In...
add detail to pmag.angle docstring
py
diff --git a/astrobase/astrokep.py b/astrobase/astrokep.py index <HASH>..<HASH> 100644 --- a/astrobase/astrokep.py +++ b/astrobase/astrokep.py @@ -11,6 +11,7 @@ import logging from datetime import datetime from traceback import format_exc from time import time as unixtime +import glob import os.path try:
astrokep: fixing consolidate_kepler_fitslc
py
diff --git a/docs/source/conf.py b/docs/source/conf.py index <HASH>..<HASH> 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -62,10 +62,15 @@ author = u'Graphistry, Inc.' # |version| and |release|, also used in various other places throughout the # built documents. # +# If extensions (or modules to docu...
Docs: read version from setup.py
py
diff --git a/tensorflow_datasets/core/lazy_imports.py b/tensorflow_datasets/core/lazy_imports.py index <HASH>..<HASH> 100644 --- a/tensorflow_datasets/core/lazy_imports.py +++ b/tensorflow_datasets/core/lazy_imports.py @@ -102,7 +102,7 @@ class LazyImporter(object): _try_import("skimage.external.tifffile") re...
Update lazy_imports.py
py
diff --git a/src/hunter.py b/src/hunter.py index <HASH>..<HASH> 100644 --- a/src/hunter.py +++ b/src/hunter.py @@ -419,6 +419,7 @@ class Debugger(Fields.klass.kwargs, Action): Runs a ``pdb.set_trace`` at the matching frame. """ self.klass(**self.kwargs).set_trace(event.frame) + return ...
Allow actions to be used as passthrough predicates (for typing convenience).
py
diff --git a/src/wa_kat/templates/static/js/Lib/site-packages/components/author_picker.py b/src/wa_kat/templates/static/js/Lib/site-packages/components/author_picker.py index <HASH>..<HASH> 100755 --- a/src/wa_kat/templates/static/js/Lib/site-packages/components/author_picker.py +++ b/src/wa_kat/templates/static/js/Lib...
#<I>: Author errors are now logged by LogView component.
py
diff --git a/werobot/session/filestorage.py b/werobot/session/filestorage.py index <HASH>..<HASH> 100644 --- a/werobot/session/filestorage.py +++ b/werobot/session/filestorage.py @@ -20,7 +20,10 @@ class FileStorage(SessionStorage): self.db = dbm.open(filename, "c") def get(self, id): - session_j...
Fix FileStorage's bug
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ if __name__ == "__main__": version=falafel.VERSION, description="Insights Application Programming Interface", packages=find_packages(), - package_data={"": ["*.j...
Add .js into package_data list in setup.py
py
diff --git a/tests/manualtest/run_response_performance.py b/tests/manualtest/run_response_performance.py index <HASH>..<HASH> 100755 --- a/tests/manualtest/run_response_performance.py +++ b/tests/manualtest/run_response_performance.py @@ -342,10 +342,10 @@ class ExecuteTests(object): # if dest defined, output ...
Fixed that directories were not stripped in cprofile log files
py
diff --git a/entity/models.py b/entity/models.py index <HASH>..<HASH> 100644 --- a/entity/models.py +++ b/entity/models.py @@ -8,6 +8,7 @@ from django.db.models import Count, Q from django.utils.encoding import python_2_unicode_compatible from jsonfield import JSONField from python3_utils import compare_on_attr +fro...
added python3 compatible reduce.
py
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/views.py +++ b/openquake/calculators/views.py @@ -754,6 +754,16 @@ def view_global_poes(token, dstore): return rst_table(tbl, header=header) +@view.add('global_gmfs') +def view_g...
Added view global_gmfs [skip CI]
py
diff --git a/faker/providers/lorem/en_US/__init__.py b/faker/providers/lorem/en_US/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/lorem/en_US/__init__.py +++ b/faker/providers/lorem/en_US/__init__.py @@ -5,6 +5,9 @@ from .. import Provider as LoremProvider class Provider(LoremProvider): + """en_U...
Attribution for source of en_US lorem word list
py
diff --git a/rebulk/test/test_rebulk.py b/rebulk/test/test_rebulk.py index <HASH>..<HASH> 100644 --- a/rebulk/test/test_rebulk.py +++ b/rebulk/test/test_rebulk.py @@ -295,3 +295,28 @@ class TestMarkers(object): assert matches[0].value == "word" assert not matches.markers + + +class TestUnicode(objec...
Add test for unicode support Close #1
py
diff --git a/tests/unit/test_http.py b/tests/unit/test_http.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_http.py +++ b/tests/unit/test_http.py @@ -216,7 +216,6 @@ class TestHTTP(object): conn = serve.recv() for request in conn: conn.socket.close() - requ...
actually, it's fine .. just a timing issue which I'm not sure we care about
py
diff --git a/oct/core/hq.py b/oct/core/hq.py index <HASH>..<HASH> 100644 --- a/oct/core/hq.py +++ b/oct/core/hq.py @@ -1,3 +1,4 @@ +from __future__ import print_function import zmq import time
add import for python2 support
py
diff --git a/visidata/__init__.py b/visidata/__init__.py index <HASH>..<HASH> 100644 --- a/visidata/__init__.py +++ b/visidata/__init__.py @@ -61,8 +61,8 @@ from .expr import * from .pyobj import * from .metasheets import * from .join import * -from .describe import * from .aggregators import * +from .describe impo...
[init] import aggregators before describe
py
diff --git a/edisgo/flex_opt/check_tech_constraints.py b/edisgo/flex_opt/check_tech_constraints.py index <HASH>..<HASH> 100644 --- a/edisgo/flex_opt/check_tech_constraints.py +++ b/edisgo/flex_opt/check_tech_constraints.py @@ -39,7 +39,7 @@ def mv_line_load(network): # check if maximum current from power f...
Convert single value series to float
py
diff --git a/cnxarchive/scripts/initializedb.py b/cnxarchive/scripts/initializedb.py index <HASH>..<HASH> 100644 --- a/cnxarchive/scripts/initializedb.py +++ b/cnxarchive/scripts/initializedb.py @@ -8,24 +8,21 @@ """Commandline script used to initialize the SQL database.""" import os import sys +import argparse i...
Use argparse, because other options need added.
py
diff --git a/join/_core.py b/join/_core.py index <HASH>..<HASH> 100644 --- a/join/_core.py +++ b/join/_core.py @@ -31,20 +31,10 @@ def join(left, right, how='inner', key=None, left_key=None, right_key=None, return key_fn if key is not None: - if callable(key): - lkey, rkey = key, key -...
simplified key function init in join()
py
diff --git a/tile_generator/pcf.py b/tile_generator/pcf.py index <HASH>..<HASH> 100755 --- a/tile_generator/pcf.py +++ b/tile_generator/pcf.py @@ -150,7 +150,14 @@ def install_cmd(product, version): payload = { 'to_version': version } - opsmgr.put('/api/installation_settings/products/' + matches[0]['guid'], ...
pcf isntall succeeds when version is already installed
py
diff --git a/zoonado/__init__.py b/zoonado/__init__.py index <HASH>..<HASH> 100644 --- a/zoonado/__init__.py +++ b/zoonado/__init__.py @@ -1,8 +1,13 @@ -from .client import Zoonado # noqa -from .protocol import WatchEvent # noqa -from .protocol.acl import ACL # noqa -from .retry import RetryPolicy # noqa version...
Update __init__ so that setup.py can run.
py
diff --git a/lib/gruvi/local.py b/lib/gruvi/local.py index <HASH>..<HASH> 100644 --- a/lib/gruvi/local.py +++ b/lib/gruvi/local.py @@ -25,7 +25,6 @@ class local(object): def __getattr__(self, key): grid = id(greenlet.getcurrent()) - print('__getattr__(): grid: %s' % grid) try: ...
Remove stray debugging statement.
py
diff --git a/wpull/body.py b/wpull/body.py index <HASH>..<HASH> 100644 --- a/wpull/body.py +++ b/wpull/body.py @@ -68,7 +68,7 @@ class Body(object): dict: The items are: * ``filename`` (string, None): The path of the file. - * ``size`` (int, None): The size of the file. + ...
body: Fix docstring for accessing file size
py
diff --git a/openstack_dashboard/dashboards/project/images/images/tables.py b/openstack_dashboard/dashboards/project/images/images/tables.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/images/images/tables.py +++ b/openstack_dashboard/dashboards/project/images/images/tables.py @@ -220,8 +22...
Make "RAW" in image table translatable. Most of the format values in the images tables are acronyms and do not need to be translated. The "RAW" value is a word and should be translated. It really don't need to be all caps either. Change-Id: I<I>d<I>b<I>e<I>dad<I>ab<I>ca<I>e<I>c Closes-Bug: <I>
py
diff --git a/h2o-py/h2o/estimators/estimator_base.py b/h2o-py/h2o/estimators/estimator_base.py index <HASH>..<HASH> 100644 --- a/h2o-py/h2o/estimators/estimator_base.py +++ b/h2o-py/h2o/estimators/estimator_base.py @@ -160,7 +160,7 @@ class H2OEstimator(ModelBase): assert_is_type(verbose, bool) assert...
Fix bulk model building on Python <I>
py
diff --git a/fusesoc/provider/provider.py b/fusesoc/provider/provider.py index <HASH>..<HASH> 100644 --- a/fusesoc/provider/provider.py +++ b/fusesoc/provider/provider.py @@ -8,8 +8,7 @@ class Provider(object): self.config = config self.core_root = core_root self.files_root = files_root - - ...
Compare cachable entry as boolean
py
diff --git a/asammdf/mdf.py b/asammdf/mdf.py index <HASH>..<HASH> 100644 --- a/asammdf/mdf.py +++ b/asammdf/mdf.py @@ -480,7 +480,7 @@ class MDF(object): if channel['byte_offset'] in frame_bytes: included_channels.remove(i) - if group['CAN_database']: + ...
second fix attempt for _included_channels
py
diff --git a/sphinxcontrib/needs/directives/need.py b/sphinxcontrib/needs/directives/need.py index <HASH>..<HASH> 100644 --- a/sphinxcontrib/needs/directives/need.py +++ b/sphinxcontrib/needs/directives/need.py @@ -435,7 +435,7 @@ def create_back_links(env): for key, need in needs.items(): for link in nee...
Fix: Multiple need_parts to the same target-need do not create multiple links_incoming
py
diff --git a/asammdf/blocks/v2_v3_blocks.py b/asammdf/blocks/v2_v3_blocks.py index <HASH>..<HASH> 100644 --- a/asammdf/blocks/v2_v3_blocks.py +++ b/asammdf/blocks/v2_v3_blocks.py @@ -2713,7 +2713,7 @@ class TextBlock: text = kwargs["text"] try: - text = text.encode("utf-8") + ...
fix error when creating v3 TXBLOCK from text with length higher than <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -204,6 +204,11 @@ def _check_ver(pyver, op, wanted): ''' pyver = distutils.version.LooseVersion(pyver) wanted = distutils.version.LooseVersion(wanted) + if IS_PY3: + if not isinstance(pyver, str): + ...
Strings and integers are not comparable under Python 3
py
diff --git a/statsd/timer.py b/statsd/timer.py index <HASH>..<HASH> 100644 --- a/statsd/timer.py +++ b/statsd/timer.py @@ -99,9 +99,9 @@ class Timer(statsd.Client): ... pass ''' - if isinstance(function_or_name, basestring): - return lambda f: self._decorate(function_or_name, f...
As basestring has been removed, use callable instead
py
diff --git a/local_settings/loader.py b/local_settings/loader.py index <HASH>..<HASH> 100644 --- a/local_settings/loader.py +++ b/local_settings/loader.py @@ -258,10 +258,15 @@ class Loader(Base): return v def _import_from_string(self, settings): + import_ = settings.get('IMPORT_FROM_STRING') + ...
Make Loader._import_from_string more robust Return early if IMPORT_FROM_STRING is not set, empty, or set to None. Previously, when IMPORT_FROM_STRING was explicitly set to None, that would cause an error when trying to iterate over None. We want to allow IMPORT_FROM_STRING to be set to None either as a default value o...
py
diff --git a/scapy.py b/scapy.py index <HASH>..<HASH> 100755 --- a/scapy.py +++ b/scapy.py @@ -1414,12 +1414,13 @@ class ASN1_DECODING_ERROR(ASN1_Object): return self.val.enc(codec) return self.val -class ASN1_raw(ASN1_Object): +class ASN1_force(ASN1_Object): tag = ASN1_Class_UNIVERSAL.RAW ...
Changed ASN1_raw() in ASN1_force(), that can also cope with ASN1 objects
py
diff --git a/ibei/main.py b/ibei/main.py index <HASH>..<HASH> 100644 --- a/ibei/main.py +++ b/ibei/main.py @@ -101,12 +101,31 @@ class SQSolarcell(object): return dict(zip(physical_prop_names, physical_prop_vals)) -def bb_rad_power(temp): - """ - Blackbody radiant power (Stefan-Boltzmann). - """ -...
Refactor rad. power calc into SQSolarcell class
py
diff --git a/Xlib/protocol/rq.py b/Xlib/protocol/rq.py index <HASH>..<HASH> 100644 --- a/Xlib/protocol/rq.py +++ b/Xlib/protocol/rq.py @@ -1405,11 +1405,23 @@ class Event(GetAttrData): kws = ', '.join(kwlist) return '%s(%s)' % (self.__class__, kws) - def __cmp__(self, other): + def __lt__(self...
TestSendEvent.testUnpackRequest0 from test_requests_le.py was fixed for Py3
py
diff --git a/libsubmit/providers/local/local.py b/libsubmit/providers/local/local.py index <HASH>..<HASH> 100644 --- a/libsubmit/providers/local/local.py +++ b/libsubmit/providers/local/local.py @@ -1,14 +1,15 @@ -import os import logging -import subprocess import math -import time +import os import signal +import s...
Sort imports It makes them a bit easier to read.
py
diff --git a/tests/test_surfgen.py b/tests/test_surfgen.py index <HASH>..<HASH> 100644 --- a/tests/test_surfgen.py +++ b/tests/test_surfgen.py @@ -150,14 +150,22 @@ def test_grid_save1(grid): def test_grid_save2(): test_grid = CPGen.Grid(5, 7) with pytest.raises(RuntimeError): + # trying to save befor...
Add more tests covering IO exception for surface generator
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -1086,7 +1086,7 @@ class MainWindow(QMainWindow): # Tabify external plugins which were installed after Spyder was # installed. # Note...
Layout: Ensure setting up last dockwidgets sizes distributions
py